This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[FIX] Stop torrent on closing

Tags: None
(comma "," separated)
axelgenus
Registered Member
Posts
44
Karma
0

[FIX] Stop torrent on closing

Tue Jan 17, 2006 9:58 am
It seems like KTorrent doesn't send a STOP signal to the tracker when I quit it. It's very important!

Can you get this fix in the coming-soon release (1.2)?

edit: I'm using KTorrent SVN (I downloaded that yesterday) with Gentoo 2005.1-r1).
George
Moderator
Posts
5421
Karma
1

Tue Jan 17, 2006 10:30 am
When we stop a torrent, the stopped signal should be sent to the tracker, but maybe it does not get enough time at exit. I will have to examine it.
axelgenus
Registered Member
Posts
44
Karma
0

Tue Jan 17, 2006 10:48 am
George wrote:When we stop a torrent, the stopped signal should be sent to the tracker, but maybe it does not get enough time at exit. I will have to examine it.

Ok, thanks!
George
Moderator
Posts
5421
Karma
1

Tue Jan 17, 2006 6:10 pm
Maybe you can use ethereal to see if the HTTP request gets sent, there should be event=stopped somewhere in the HTTP request.
axelgenus
Registered Member
Posts
44
Karma
0

Wed Jan 18, 2006 1:13 pm
George wrote:Maybe you can use ethereal to see if the HTTP request gets sent, there should be event=stopped somewhere in the HTTP request.


I don't know that program... what should I look for?
George
Moderator
Posts
5421
Karma
1

Wed Jan 18, 2006 5:12 pm
ethereal records all packets sent over a network interface, and then it analyzes each packet and tells you what it is (UDP, TCP, HTTP, ... it supports pretty much any protocol).

http://www.ethereal.com/

You just have to look for TCP packets going to the tracker (you can find the hostname of the tracker in the log file, use nslookup to figure out it's IP).

When you have found the packet look at it's content. The last TCP packet going to the tracker should contain event=stopped.
axelgenus
Registered Member
Posts
44
Karma
0

Fri Jan 27, 2006 2:21 pm
update: not solved!!!

I'm installing Ethereal so I can provide better debug information.
axelgenus
Registered Member
Posts
44
Karma
0

Sat Jan 28, 2006 8:58 am
Ok, I tried it with ethereal. KTorrent tries to send the stop message but sometimes closes before can send it...

Possible solutions?
George
Moderator
Posts
5421
Karma
1

Sat Jan 28, 2006 12:05 pm
We wait for 250 ms, should be more then enough for a responsive tracker to get the message.
axelgenus
Registered Member
Posts
44
Karma
0

Sun Jan 29, 2006 12:08 pm
Can you double it? 500ms still won't be noticed by users...
George
Moderator
Posts
5421
Karma
1

Sun Jan 29, 2006 12:47 pm
OK, anything more will probably be to much. I will change it to 500ms with my next commit.
axelgenus
Registered Member
Posts
44
Karma
0

Sun Jan 29, 2006 12:53 pm
Thanx... :D


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]