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


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old June 15th, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default

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.

Last edited by ToNneTje; June 15th, 2011 at 06:36 AM. Reason: Update
Reply With Quote
  #12 (permalink)  
Old June 15th, 2011
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
  #13 (permalink)  
Old June 22nd, 2011
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

I found the problem of this issue. It is fixed in SVN.
__________________
Reply With Quote
  #14 (permalink)  
Old June 22nd, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default

Thanks Gregor
Reply With Quote
  #15 (permalink)  
Old June 22nd, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default

Update: Outgoing connections works perfect now
Reply With Quote
Reply


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 06:47 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.