Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Shareaza (Windows)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Shareaza (Windows) Shareaza user question section. Preview this popular software Shareaza (when only the 'Real' version will do)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 7th, 2002
BearShare Developer
 
Join Date: May 25th, 2001
Posts: 163
Vinnie is flying high
Default *Upload disconnects and TCP

From Shareaza 1.2 (?):

"Better upload limiting. Shareaza always supported limiting the number of total uploads and the number per unique host, which provided good protection. However some clients can be very aggressive and send frequent requests without closing their old connections. Shareaza now has additional measures to limit not only the number of active transfers per host, but also throttle the number of raw connections. "

Mike, I want to point out the following scenario that we observed in house:

- A client connects to an HTTP server and requests a file

- At some point the TCP connection is severed

- The client becomes aware of the disconnect before the server

- Client re-connects to the server and re-requests the file

- At this point, the server sees two connections from the same client

We have a fairly complex strategy for detecting this situation and handling it gracefully. When the second connection comes in, we wait for the request and compare it to the first connection. The first connection is put on "probation".

One characteristic of broken connections is they never send or receive any data. If a connection on "probation" sees a byte go in or out then we take it off probation and drop the newer duplicate. If the newer duplicate completes data transfer, and its request exactly matches the older connection's request, then we drop the older one.

There is a lot more logic (to handle n slots per host) but this is the basic idea.

Obviously, if we did away with upload slots (like a standard web server) this problem is a non-issue.
Reply With Quote
  #2 (permalink)  
Old July 7th, 2002
Shareaza Developer
 
Join Date: June 24th, 2002
Posts: 27
Shareaza is flying high
Default

Cheers Vinnie, yes I agree that scheme has some benefits and could perhaps differentiate between clients which are reestablishing lost downloads quickly and those which are actually malicious.

I will implement something along those lines in the next release.
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
I have LW 4.12.6 and it disconnects itself Gerard_Butler_Fan Connection Problems 0 November 5th, 2006 05:23 PM
Disconnects after 5-10 minutes digger1978 Connection Problems 4 June 16th, 2004 06:06 PM
Connects & Disconnects To Much JPM1920 Connection Problems 11 February 18th, 2003 01:03 AM
problem when isp disconnects mgk Gnucleus (Windows) 6 June 18th, 2002 01:21 AM
1.6 disconnects Unregistered General Windows Support 0 July 19th, 2001 02:48 PM


All times are GMT -7. The time now is 05:05 PM.


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.