Couldn't find any topic addressing this, sorry if I missed it. I hope this is the correct forum.
Quick question: shouldn't the client send the stopped event when quitting?
Sending "stopped" event to tracker on exit
-
- Compulsive Poster
- Posts: 1230
- Joined: Thu May 24, 2007 11:27 pm
- Location: Chicago, IL, USA
- Contact:
Re: Sending "stopped" event to tracker on exit
yes, and we do. the thing is, we only wait 5 seconds for the tracker to respond when exiting. if it doesnt respond within that time, we close and they dont get the full stop message. it's a tricky subject. if we increase the limit, then you wont be able to restart deluge right away after closing, people will wonder why, or deluge hangs on close, etc.fishface wrote:Couldn't find any topic addressing this, sorry if I missed it. I hope this is the correct forum.
Quick question: shouldn't the client send the stopped event when quitting?
Re: Sending "stopped" event to tracker on exit
I don't know much about the protocol, but I assume the stopped event tells it that you are no longer available in the swarm. What disadvantages are there for not sending a "stopped event" to the tracker when you disconnect (apart from bad manners.)
Ubuntu 7.10 - amd64
Re: Sending "stopped" event to tracker on exit
Actually, it appears that, on exit, it doesn't send anything to the tracker at all. I'm using 0.5.7.1 from svn. With Wireshark running, i hit Pause, Resume, and then Quit:markybob wrote: yes, and we do. the thing is, we only wait 5 seconds for the tracker to respond when exiting. if it doesnt respond within that time, we close and they dont get the full stop message. it's a tricky subject. if we increase the limit, then you wont be able to restart deluge right away after closing, people will wonder why, or deluge hangs on close, etc.
Code: Select all
No. Time Source Destination Protocol Info
92 9.030325 10.0.0.47 10.0.0.20 TCP 32847 > http [SYN] Seq=0 Len=0 MSS=1460 TSV=39854132 TSER=0 WS=7
Frame 92 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 0, Len: 0
No. Time Source Destination Protocol Info
93 9.031524 10.0.0.20 10.0.0.47 TCP http > 32847 [SYN, ACK] Seq=0 Ack=1 Win=185344 Len=0 MSS=1460 TSV=39953998 TSER=39854132 WS=5
Frame 93 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
94 9.031554 10.0.0.47 10.0.0.20 TCP 32847 > http [ACK] Seq=1 Ack=1 Win=5888 Len=0 TSV=39854132 TSER=39953998
Frame 94 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 1, Ack: 1, Len: 0
[b]
No. Time Source Destination Protocol Info
95 9.031626 10.0.0.47 10.0.0.20 HTTP GET /asdf/an.php?info_hash=%10%bc%f1i%9fY%0b%ac%02%b6%90%ac%e4K%aa%b71a%c8G&peer_id=-DE0571-glvZb~s*_Fm7&port=50000&uploaded=0&downloaded=0&left=0&event=stopped&key=4b539eb7&compact=1&numwant=0&supportcrypto=1&no_peer_id=1 HTTP/1.0
Frame 95 (367 bytes on wire, 367 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 1, Ack: 1, Len: 301
Hypertext Transfer Protocol
[/b]
No. Time Source Destination Protocol Info
96 9.033269 10.0.0.20 10.0.0.47 TCP http > 32847 [ACK] Seq=1 Ack=302 Win=6880 Len=0 TSV=39953999 TSER=39854132
Frame 96 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 1, Ack: 302, Len: 0
No. Time Source Destination Protocol Info
97 9.036163 10.0.0.20 10.0.0.47 HTTP HTTP/1.0 200 OK (text/plain)
Frame 97 (331 bytes on wire, 331 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 1, Ack: 302, Len: 265
Hypertext Transfer Protocol
Line-based text data: text/plain
No. Time Source Destination Protocol Info
98 9.036179 10.0.0.47 10.0.0.20 TCP 32847 > http [ACK] Seq=302 Ack=266 Win=6912 Len=0 TSV=39854133 TSER=39953999
Frame 98 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 302, Ack: 266, Len: 0
No. Time Source Destination Protocol Info
99 9.036374 10.0.0.47 10.0.0.20 TCP 32847 > http [FIN, ACK] Seq=302 Ack=266 Win=6912 Len=0 TSV=39854133 TSER=39953999
Frame 99 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 302, Ack: 266, Len: 0
No. Time Source Destination Protocol Info
100 9.036452 10.0.0.20 10.0.0.47 TCP http > 32847 [FIN, ACK] Seq=266 Ack=302 Win=6880 Len=0 TSV=39954000 TSER=39854132
Frame 100 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 266, Ack: 302, Len: 0
No. Time Source Destination Protocol Info
101 9.036468 10.0.0.47 10.0.0.20 TCP 32847 > http [ACK] Seq=303 Ack=267 Win=6912 Len=0 TSV=39854133 TSER=39954000
Frame 101 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 303, Ack: 267, Len: 0
No. Time Source Destination Protocol Info
102 9.038179 10.0.0.20 10.0.0.47 TCP http > 32847 [ACK] Seq=267 Ack=303 Win=6880 Len=0 TSV=39954000 TSER=39854133
Frame 102 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 267, Ack: 303, Len: 0
No. Time Source Destination Protocol Info
172 13.041246 10.0.0.47 10.0.0.20 TCP 51388 > http [SYN] Seq=0 Len=0 MSS=1460 TSV=39855335 TSER=0 WS=7
Frame 172 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 0, Len: 0
No. Time Source Destination Protocol Info
173 13.042637 10.0.0.20 10.0.0.47 TCP http > 51388 [SYN, ACK] Seq=0 Ack=1 Win=185344 Len=0 MSS=1460 TSV=39955201 TSER=39855335 WS=5
Frame 173 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
174 13.042681 10.0.0.47 10.0.0.20 TCP 51388 > http [ACK] Seq=1 Ack=1 Win=5888 Len=0 TSV=39855335 TSER=39955201
Frame 174 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 1, Ack: 1, Len: 0
[b]
No. Time Source Destination Protocol Info
175 13.042827 10.0.0.47 10.0.0.20 HTTP GET /asdf/an.php?info_hash=%10%bc%f1i%9fY%0b%ac%02%b6%90%ac%e4K%aa%b71a%c8G&peer_id=-DE0571-glvZb~s*_Fm7&port=50000&uploaded=0&downloaded=0&left=0&event=started&key=4b539eb7&compact=1&numwant=200&supportcrypto=1&no_peer_id=1 HTTP/1.0
Frame 175 (369 bytes on wire, 369 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 1, Ack: 1, Len: 303
Hypertext Transfer Protocol
[/b]
No. Time Source Destination Protocol Info
176 13.044619 10.0.0.20 10.0.0.47 TCP http > 51388 [ACK] Seq=1 Ack=304 Win=6880 Len=0 TSV=39955202 TSER=39855335
Frame 176 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 1, Ack: 304, Len: 0
No. Time Source Destination Protocol Info
177 13.049543 10.0.0.20 10.0.0.47 HTTP HTTP/1.0 200 OK (text/plain)
Frame 177 (331 bytes on wire, 331 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 1, Ack: 304, Len: 265
Hypertext Transfer Protocol
Line-based text data: text/plain
No. Time Source Destination Protocol Info
178 13.049567 10.0.0.47 10.0.0.20 TCP 51388 > http [ACK] Seq=304 Ack=266 Win=6912 Len=0 TSV=39855337 TSER=39955204
Frame 178 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 304, Ack: 266, Len: 0
No. Time Source Destination Protocol Info
179 13.049854 10.0.0.47 10.0.0.20 TCP 51388 > http [FIN, ACK] Seq=304 Ack=266 Win=6912 Len=0 TSV=39855337 TSER=39955204
Frame 179 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 304, Ack: 266, Len: 0
No. Time Source Destination Protocol Info
180 13.050684 10.0.0.20 10.0.0.47 TCP http > 51388 [FIN, ACK] Seq=266 Ack=304 Win=6880 Len=0 TSV=39955204 TSER=39855335
Frame 180 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 266, Ack: 304, Len: 0
No. Time Source Destination Protocol Info
181 13.050705 10.0.0.47 10.0.0.20 TCP 51388 > http [ACK] Seq=305 Ack=267 Win=6912 Len=0 TSV=39855338 TSER=39955204
Frame 181 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86)
Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20)
Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 305, Ack: 267, Len: 0
No. Time Source Destination Protocol Info
182 13.051792 10.0.0.20 10.0.0.47 TCP http > 51388 [ACK] Seq=267 Ack=305 Win=6880 Len=0 TSV=39955204 TSER=39855337
Frame 182 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29)
Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47)
Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 267, Ack: 305, Len: 0
The an.php is a small script that dumps the GET array to a log file:
Code: Select all
Array
(
[info_hash] => ŒñiY¬¶¬äKª·1aÈG
[peer_id] => -DE0571-glvZb~s*_Fm7
[port] => 50000
[uploaded] => 0
[downloaded] => 0
[left] => 0
[event] => stopped
[key] => 4b539eb7
[compact] => 1
[numwant] => 0
[supportcrypto] => 1
[no_peer_id] => 1
)
Array
(
[info_hash] => ŒñiY¬¶¬äKª·1aÈG
[peer_id] => -DE0571-glvZb~s*_Fm7
[port] => 50000
[uploaded] => 0
[downloaded] => 0
[left] => 0
[event] => started
[key] => 4b539eb7
[compact] => 1
[numwant] => 200
[supportcrypto] => 1
[no_peer_id] => 1
)
Unfortunately I don't know python well enough to find out what's wrong, or even if the fault lies in deluge..
The tracker will continue to report you to others who ask for peers, and you will still be shown as seeding, until the tracker cleans up dead peers. If nothing is sent at all, as in this case, your stats won't update.csahin wrote:I don't know much about the protocol, but I assume the stopped event tells it that you are no longer available in the swarm. What disadvantages are there for not sending a "stopped event" to the tracker when you disconnect (apart from bad manners.)
-
- Compulsive Poster
- Posts: 1230
- Joined: Thu May 24, 2007 11:27 pm
- Location: Chicago, IL, USA
- Contact:
Re: Sending "stopped" event to tracker on exit
i found the problem and believe it's fixed in svn trunk. thanks.fishface wrote:Actually, it appears that, on exit, it doesn't send anything to the tracker at all. I'm using 0.5.7.1 from svn. With Wireshark running, i hit Pause, Resume, and then Quit:markybob wrote: yes, and we do. the thing is, we only wait 5 seconds for the tracker to respond when exiting. if it doesnt respond within that time, we close and they dont get the full stop message. it's a tricky subject. if we increase the limit, then you wont be able to restart deluge right away after closing, people will wonder why, or deluge hangs on close, etc.
Code: Select all
No. Time Source Destination Protocol Info 92 9.030325 10.0.0.47 10.0.0.20 TCP 32847 > http [SYN] Seq=0 Len=0 MSS=1460 TSV=39854132 TSER=0 WS=7 Frame 92 (74 bytes on wire, 74 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 0, Len: 0 No. Time Source Destination Protocol Info 93 9.031524 10.0.0.20 10.0.0.47 TCP http > 32847 [SYN, ACK] Seq=0 Ack=1 Win=185344 Len=0 MSS=1460 TSV=39953998 TSER=39854132 WS=5 Frame 93 (74 bytes on wire, 74 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 0, Ack: 1, Len: 0 No. Time Source Destination Protocol Info 94 9.031554 10.0.0.47 10.0.0.20 TCP 32847 > http [ACK] Seq=1 Ack=1 Win=5888 Len=0 TSV=39854132 TSER=39953998 Frame 94 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 1, Ack: 1, Len: 0 [b] No. Time Source Destination Protocol Info 95 9.031626 10.0.0.47 10.0.0.20 HTTP GET /asdf/an.php?info_hash=%10%bc%f1i%9fY%0b%ac%02%b6%90%ac%e4K%aa%b71a%c8G&peer_id=-DE0571-glvZb~s*_Fm7&port=50000&uploaded=0&downloaded=0&left=0&event=stopped&key=4b539eb7&compact=1&numwant=0&supportcrypto=1&no_peer_id=1 HTTP/1.0 Frame 95 (367 bytes on wire, 367 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 1, Ack: 1, Len: 301 Hypertext Transfer Protocol [/b] No. Time Source Destination Protocol Info 96 9.033269 10.0.0.20 10.0.0.47 TCP http > 32847 [ACK] Seq=1 Ack=302 Win=6880 Len=0 TSV=39953999 TSER=39854132 Frame 96 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 1, Ack: 302, Len: 0 No. Time Source Destination Protocol Info 97 9.036163 10.0.0.20 10.0.0.47 HTTP HTTP/1.0 200 OK (text/plain) Frame 97 (331 bytes on wire, 331 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 1, Ack: 302, Len: 265 Hypertext Transfer Protocol Line-based text data: text/plain No. Time Source Destination Protocol Info 98 9.036179 10.0.0.47 10.0.0.20 TCP 32847 > http [ACK] Seq=302 Ack=266 Win=6912 Len=0 TSV=39854133 TSER=39953999 Frame 98 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 302, Ack: 266, Len: 0 No. Time Source Destination Protocol Info 99 9.036374 10.0.0.47 10.0.0.20 TCP 32847 > http [FIN, ACK] Seq=302 Ack=266 Win=6912 Len=0 TSV=39854133 TSER=39953999 Frame 99 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 302, Ack: 266, Len: 0 No. Time Source Destination Protocol Info 100 9.036452 10.0.0.20 10.0.0.47 TCP http > 32847 [FIN, ACK] Seq=266 Ack=302 Win=6880 Len=0 TSV=39954000 TSER=39854132 Frame 100 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 266, Ack: 302, Len: 0 No. Time Source Destination Protocol Info 101 9.036468 10.0.0.47 10.0.0.20 TCP 32847 > http [ACK] Seq=303 Ack=267 Win=6912 Len=0 TSV=39854133 TSER=39954000 Frame 101 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 32847 (32847), Dst Port: http (80), Seq: 303, Ack: 267, Len: 0 No. Time Source Destination Protocol Info 102 9.038179 10.0.0.20 10.0.0.47 TCP http > 32847 [ACK] Seq=267 Ack=303 Win=6880 Len=0 TSV=39954000 TSER=39854133 Frame 102 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 32847 (32847), Seq: 267, Ack: 303, Len: 0 No. Time Source Destination Protocol Info 172 13.041246 10.0.0.47 10.0.0.20 TCP 51388 > http [SYN] Seq=0 Len=0 MSS=1460 TSV=39855335 TSER=0 WS=7 Frame 172 (74 bytes on wire, 74 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 0, Len: 0 No. Time Source Destination Protocol Info 173 13.042637 10.0.0.20 10.0.0.47 TCP http > 51388 [SYN, ACK] Seq=0 Ack=1 Win=185344 Len=0 MSS=1460 TSV=39955201 TSER=39855335 WS=5 Frame 173 (74 bytes on wire, 74 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 0, Ack: 1, Len: 0 No. Time Source Destination Protocol Info 174 13.042681 10.0.0.47 10.0.0.20 TCP 51388 > http [ACK] Seq=1 Ack=1 Win=5888 Len=0 TSV=39855335 TSER=39955201 Frame 174 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 1, Ack: 1, Len: 0 [b] No. Time Source Destination Protocol Info 175 13.042827 10.0.0.47 10.0.0.20 HTTP GET /asdf/an.php?info_hash=%10%bc%f1i%9fY%0b%ac%02%b6%90%ac%e4K%aa%b71a%c8G&peer_id=-DE0571-glvZb~s*_Fm7&port=50000&uploaded=0&downloaded=0&left=0&event=started&key=4b539eb7&compact=1&numwant=200&supportcrypto=1&no_peer_id=1 HTTP/1.0 Frame 175 (369 bytes on wire, 369 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 1, Ack: 1, Len: 303 Hypertext Transfer Protocol [/b] No. Time Source Destination Protocol Info 176 13.044619 10.0.0.20 10.0.0.47 TCP http > 51388 [ACK] Seq=1 Ack=304 Win=6880 Len=0 TSV=39955202 TSER=39855335 Frame 176 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 1, Ack: 304, Len: 0 No. Time Source Destination Protocol Info 177 13.049543 10.0.0.20 10.0.0.47 HTTP HTTP/1.0 200 OK (text/plain) Frame 177 (331 bytes on wire, 331 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 1, Ack: 304, Len: 265 Hypertext Transfer Protocol Line-based text data: text/plain No. Time Source Destination Protocol Info 178 13.049567 10.0.0.47 10.0.0.20 TCP 51388 > http [ACK] Seq=304 Ack=266 Win=6912 Len=0 TSV=39855337 TSER=39955204 Frame 178 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 304, Ack: 266, Len: 0 No. Time Source Destination Protocol Info 179 13.049854 10.0.0.47 10.0.0.20 TCP 51388 > http [FIN, ACK] Seq=304 Ack=266 Win=6912 Len=0 TSV=39855337 TSER=39955204 Frame 179 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 304, Ack: 266, Len: 0 No. Time Source Destination Protocol Info 180 13.050684 10.0.0.20 10.0.0.47 TCP http > 51388 [FIN, ACK] Seq=266 Ack=304 Win=6880 Len=0 TSV=39955204 TSER=39855335 Frame 180 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 266, Ack: 304, Len: 0 No. Time Source Destination Protocol Info 181 13.050705 10.0.0.47 10.0.0.20 TCP 51388 > http [ACK] Seq=305 Ack=267 Win=6912 Len=0 TSV=39855338 TSER=39955204 Frame 181 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: HonHaiPr_47:75:29 (00:16:ce:47:75:29), Dst: Micro-St_61:df:86 (00:10:dc:61:df:86) Internet Protocol, Src: 10.0.0.47 (10.0.0.47), Dst: 10.0.0.20 (10.0.0.20) Transmission Control Protocol, Src Port: 51388 (51388), Dst Port: http (80), Seq: 305, Ack: 267, Len: 0 No. Time Source Destination Protocol Info 182 13.051792 10.0.0.20 10.0.0.47 TCP http > 51388 [ACK] Seq=267 Ack=305 Win=6880 Len=0 TSV=39955204 TSER=39855337 Frame 182 (66 bytes on wire, 66 bytes captured) Ethernet II, Src: Micro-St_61:df:86 (00:10:dc:61:df:86), Dst: HonHaiPr_47:75:29 (00:16:ce:47:75:29) Internet Protocol, Src: 10.0.0.20 (10.0.0.20), Dst: 10.0.0.47 (10.0.0.47) Transmission Control Protocol, Src Port: http (80), Dst Port: 51388 (51388), Seq: 267, Ack: 305, Len: 0
The an.php is a small script that dumps the GET array to a log file:
Code: Select all
Array ( [info_hash] => ŒñiY¬¶¬äKª·1aÈG [peer_id] => -DE0571-glvZb~s*_Fm7 [port] => 50000 [uploaded] => 0 [downloaded] => 0 [left] => 0 [event] => stopped [key] => 4b539eb7 [compact] => 1 [numwant] => 0 [supportcrypto] => 1 [no_peer_id] => 1 ) Array ( [info_hash] => ŒñiY¬¶¬äKª·1aÈG [peer_id] => -DE0571-glvZb~s*_Fm7 [port] => 50000 [uploaded] => 0 [downloaded] => 0 [left] => 0 [event] => started [key] => 4b539eb7 [compact] => 1 [numwant] => 200 [supportcrypto] => 1 [no_peer_id] => 1 )
Unfortunately I don't know python well enough to find out what's wrong, or even if the fault lies in deluge..
The tracker will continue to report you to others who ask for peers, and you will still be shown as seeding, until the tracker cleans up dead peers. If nothing is sent at all, as in this case, your stats won't update.csahin wrote:I don't know much about the protocol, but I assume the stopped event tells it that you are no longer available in the swarm. What disadvantages are there for not sending a "stopped event" to the tracker when you disconnect (apart from bad manners.)
Re: Sending "stopped" event to tracker on exit
Not sure if you've already considered this, but how about making the shutdown process a bit more 'interactive'? When you select File/Quit, change the visible status for all torrents to "Stopping" and then "Stopped" once the tracker responded. If after 5 seconds not all trackers have responded, pop up a message saying that Deluge is still waiting for trackers to respond and offer the user a "Quit Now!" option (give a short explanation of the disadvantages of using this button). Personally, I would prefer to wait a bit longer for all torrents to be stopped properly (especially since I'm on a few private trackers that care about ratios), but this solution would also cater to the impatient onesmarkybob wrote:yes, and we do. the thing is, we only wait 5 seconds for the tracker to respond when exiting. if it doesnt respond within that time, we close and they dont get the full stop message. it's a tricky subject. if we increase the limit, then you wont be able to restart deluge right away after closing, people will wonder why, or deluge hangs on close, etc.
-
- Member
- Posts: 11
- Joined: Fri Dec 14, 2007 3:10 pm
Re: Sending "stopped" event to tracker on exit
How about making it a option as to how long to wait till close so users could change it as necessary for the trackers they are visiting some trackers are slower than others and that way if you use a slow tracker you could just increase the time as necessary without effecting all the Deluge users that way it would be more flexible.