Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Development & Coding > Development Open Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Development Open Discussion Anything else about the Phex development


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12 (permalink)  
Old June 15th, 2011
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:03 AM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.