View Single Post
  #12 (permalink)  
Old June 15th, 2011
GregorK GregorK is offline
Phex Developer
 
Join Date: May 9th, 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