Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   Outgoing connections bug? (https://www.gnutellaforums.com/development-open-discussion/98645-outgoing-connections-bug.html)

ToNneTje June 15th, 2011 05:35 AM

Where can i find "HostManager.HostCheckTimer" do i need to install some extra software for viewing or editting this? Yesterday i installed Eclipse, don't know if i need anything more... i'm not a developer so for me it's not a daily thing (but i'm curious enough to try new things) ;-)

Anyway, when Phex (svn version) after a while don't do outgoing connections anymore, i still get incoming connections all the time because i'm always Ultrapeer.
For Phex leafs it can be a problem, they only have outgoing connections, if Phex stops doing outgoing connections, they aren't connected to the network anymore.

GregorK June 15th, 2011 06:04 AM

Look at the SVN file:
phex\src\main\java\phex\host\HostManager.java

The variable outConnectCount in line 281 defines the number of outgoing connection that will be opened. Apparently its 0 or below for you. It would be interesting to find out why.

You could add some debug output to the code. The easiest way would be something like this:

Before line 283 add:
Code:

System.out.println( outConnectCount
    + " -mc " + missingCount
    + " -ctc " + currentTryCount
    + " -ahc " + allHostCount
    + " -ehc " + errorHostCount
    + " -tc " + totalCount
    + " -ul " + upperLimit
);

After changing you need to build Phex again.

When you start Phex from a console window is should write about every 2 seconds a line showing you some numbers used to calculate the outgoing connection attempts.
It would be nice to see if either this output suddenly stops or if one of the values is incorrect and prevents further outgoing connections.

Gregor

GregorK June 22nd, 2011 03:06 AM

I found the problem of this issue. It is fixed in SVN.

ToNneTje June 22nd, 2011 06:18 AM

Thanks Gregor :super:

ToNneTje June 22nd, 2011 06:51 AM

Update: Outgoing connections works perfect now :D


All times are GMT -7. The time now is 12:56 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.