effigies / BitTornado

UNMAINTAINED - John Hoffman's fork of the original bittorrent
Other
150 stars 44 forks source link

timeout exceeded #45

Open yang502 opened 8 years ago

yang502 commented 8 years ago

I am using python2.7 branch. And has 2 leech get file from seeder. They can download succeed,but after a period of time(may be half hour ), I found one of leech give the ERROR hint.

ERROR: Problem connecting to tracker - timeout exceeded

ERROR: Problem connecting to tracker - timeout exceeded

ERROR: Problem connecting to tracker - timeout exceeded

saving: cent7.base (5930.0 MB) percent done: 100 time left: Download Succeeded! download to: /opt/yang/cent7.base download rate:
upload rate: 0.0 kB/s share rating: 0.535 (3157.7 MB up / 5905.0 MB down) seed status: 1 seen recently, plus 0.000 distributed copies peer status: 0 seen now, 0.0% done at 1310.3 kB/s

effigies commented 8 years ago

Is there any chance of trying this on the Python3 branch? I'd like to leave Python 2.7 behind, entirely, if possible.

I want to create a debug branch that logs every announce request and response on both the client and tracker end, so we can see if/when there's a failure. It would be nice to only have to do that with Python 3, since I've rearchitected announces after moving to Python 3.

That said, it's going to be a little time, as I'm very busy right now. Hopefully by next weekend.

yang502 commented 8 years ago

leech can't download file fiom seeder ,like issue #23.So I can't try in python3 branch. had to change to use python2.7 branch . I can't be sure that the python3 branch whether has such phenomenon.

yang502 commented 8 years ago

python2.7 branch

I have test a case like this :
leecher A : download succeed ->(a little time) give hint like this : ERROR: Problem connecting to tracker - timeout exceeded

saving: test.base (16059.8 MB) percent done: 100 time left: Download Succeeded! download to: /opt/yang/test.base download rate:
upload rate: 947.7 kB/s share rating: 0.300 (4812.2 MB up / 16059.8 MB down) seed status: 1 seen recently, plus 0.958 distributed copies

peer status: 1 seen now, 95.8% done at 2527.7 kB/s

form the above: peer is leecher B

leecher B :can download file form leecher A succeed!