Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old March 27th, 2002
Apprentice
 
Join Date: March 27th, 2002
Posts: 7
zzzzzz is flying high
Question connection problem

Hello,
I have written a gnutella client and it works. The problem is I can only get few connection. WHen I got an outcoming connection, it can only keep alive for a little while then disconnect. When I got an incoming connection, it can keep alive for a longer time, but I can only get 1 or 2 incoming connections.
When I run bearshare and my client in the same machine using different port, bearshare can get enough incoming connection while my client cannot. I have no clue about it.
Is anyone know how to get more connection and made them stable?
I appreciate for your help.
Reply With Quote
  #2 (permalink)  
Old March 27th, 2002
Disciple
 
Join Date: January 3rd, 2002
Location: USA,Connecticut
Posts: 12
Joetella is flying high
Default

what is a "little while". Most clients (bearshare/limewire) send out "alive" pings .. and if you dont response with a pong within 10 sec.. your history ...
Reply With Quote
  #3 (permalink)  
Old March 27th, 2002
Apprentice
 
Join Date: March 27th, 2002
Posts: 7
zzzzzz is flying high
Default connection problem

Quote:
Originally posted by Joetella
what is a "little while". Most clients (bearshare/limewire) send out "alive" pings .. and if you dont response with a pong within 10 sec.. your history ...
Thank you for your reply. I can only connect with a servent for about less than 1 minutes. When I receive a message, I put it into a queue. I use another thread keep retriving message from the queue, route the message, and send reply.
Reply With Quote
  #4 (permalink)  
Old July 4th, 2002
sickfish's Avatar
Novicius
 
Join Date: July 4th, 2002
Location: nj, usa
Posts: 4
sickfish is flying high
Red face connection problems

i'm having a similar problem. my client responds to keep-alive pings too. it looks like the problem is related to the other hosts (duh, of course it can't be me ) ... seriously. BearShare 2.5/2.6 and LimeWire 2.4.4 seem to represent the majority of clients that my client is finding, and most of them drop my connection almost immediately. usually i'm able to sneak a ping through and sometimes i get some pongs back, enough to keep 25 (i'll explain) connections searching for other hosts. i'm using 25 because with six it was taking forever to find even one host that wouldn't drop my connection. there are a few user agents that don't drop me all the time (mostly Gnucleus 1.6.0.0/1.6.3.0 and MorpheusPE 1.3.3.2). to be fair, the LimeWire clients often send 503 error codes and X-Try headers, so maybe they're just all backed up (or "shielded leaf nodes") :P the only thing i can think of is that my handshake is bad (
i'm sending
Code:
GNUTELLA/0.6 200 OK<cr><lf><cr><lf>
) ... any suggestions would be very helpful. thanks!!
Reply With Quote
  #5 (permalink)  
Old July 4th, 2002
BearShare Developer
 
Join Date: May 25th, 2001
Posts: 163
Vinnie is flying high
Default Easy

Sickfish, you should run LimeWire on the same machine that you are using to develop your client, and just connect the two to each other and see why it drops you.

Or, you could use Gnucleus for testing.

Either way, you've got source code for both LimeWire and Gnucleus, so you can set a breakpoint and look up their stack to find out why you are getting dropped.
Reply With Quote
  #6 (permalink)  
Old July 5th, 2002
sickfish's Avatar
Novicius
 
Join Date: July 4th, 2002
Location: nj, usa
Posts: 4
sickfish is flying high
Default duh

yeah i should have thought of that. :P
Reply With Quote
  #7 (permalink)  
Old July 5th, 2002
sickfish's Avatar
Novicius
 
Join Date: July 4th, 2002
Location: nj, usa
Posts: 4
sickfish is flying high
Default ok, but still

i can connect to my LimeWire client, but it seems to Really want to be an ultrapeer and always gives me a 503/shielded leaf node message. but it redirects me to other clients, many of which are LimeWire, and i have successfully connected to a few of those. is possible that my connection problems are due to a dearth of other servants with available connections? (this is my question)

but both my LimeWire and BearShare clients seem to have no trouble connecting at all. i still haven't been able to connect to my own BearShare client. it sends me a 200 OK, that bad packet and then drops me every time. like, immediately. what's up with that?
Reply With Quote
  #8 (permalink)  
Old July 21st, 2002
On Holiday
 
Join Date: July 20th, 2002
Posts: 185
Syfonic is flying high
Default

It is possible but not likely if that helps you at all
Reply With Quote
  #9 (permalink)  
Old July 21st, 2002
Paradog's Avatar
Distinguished Member
 
Join Date: April 5th, 2002
Location: Germoney
Posts: 739
Paradog is flying high
Default Re: ok, but still

Shareaza and Gnucleus are both great for debugging your client.
The System window of Shareaza shows you all task it is performing (Send Handshake, etc).
In Gnucleus you can go to the Connections tab after you have connected your client with it. Then you can right click on your connected client and see some stats like the effiency and errors your client caused.

I used to do that way.
Reply With Quote
  #10 (permalink)  
Old July 21st, 2002
On Holiday
 
Join Date: July 20th, 2002
Posts: 185
Syfonic is flying high
Default

I ahve nevr done it thta way but it sounds like a good idea
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection problem? or download problem? help! Mich_in_NJ Connection Problems 5 November 25th, 2006 04:05 PM
connection problem howl64 Connection Problems 1 February 27th, 2004 07:22 PM
connection problem llum Connection Problems 0 February 21st, 2004 12:22 AM
Connection Problem Nicky Connection Problems 0 December 27th, 2003 07:17 AM
Connection Problem Unregistered Connection Problems 0 May 26th, 2002 06:17 PM


All times are GMT -7. The time now is 11:05 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.