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

Feature request

Tags: None
(comma "," separated)
pr2357
Registered Member
Posts
3
Karma
0

Feature request

Sun Jan 17, 2010 9:48 am
Hi All,

I would like to request the following feature for the next releases:

- Right now, the TCP (or is it UDP?) timeout is defined (hard coded) as 20 seconds and I believe this is causing me to miss out on many possible peers/seeders. Would it be possible to add this as a configuration parameter to one of the dialogs?

I haven't tried to change it and compile because compilation doesn't work for me (probably missing one of the libraries) but it would be great to add it as a feature. :D

Thanks

N
George
Moderator
Posts
5421
Karma
1

Re: Feature request

Sun Jan 17, 2010 5:04 pm
Which timeout ?
pr2357
Registered Member
Posts
3
Karma
0

Re: Feature request

Sun Jan 17, 2010 7:41 pm
The timeout to authenticate a peer (seeder).

I found it hard coded in : libbtcore/peer/authenticatebase.cpp


AuthenticateBase::AuthenticateBase(mse::StreamSocket* s) : sock(s),finished(false),local(false)
{
connect(&timer,SIGNAL(timeout()),this,SLOT(onTimeout()));
timer.setSingleShot(true);
timer.start(20000);
memset(handshake,0x00,68);
bytes_of_handshake_received = 0;
ext_support = 0;
poll_index = -1;
}

Thanks

N
George
Moderator
Posts
5421
Karma
1

Re: Feature request

Mon Jan 18, 2010 5:21 pm
What makes you think a peer is going to respond after it hasn't responded for 20 seconds ?
pr2357
Registered Member
Posts
3
Karma
0

Re: Feature request

Tue Jan 19, 2010 7:05 am
My log is filled with timeouts, much more than I remember when I used uTorrent on the same connection. Therefore I would like to try raising that timeout to see if it helps.

N

Here's a snapshot

Tue Jan 19 09:04:40 2010: Switching back to normal server authenticate
Tue Jan 19 09:04:40 2010: Authentication(S) to xxx.xxx.xxx.xxx : ok
Tue Jan 19 09:04:40 2010: Timeout occurred
Tue Jan 19 09:04:40 2010: Authentication to xxx.xxx.xxx.xxx : failure
Tue Jan 19 09:04:40 2010: Initiating connection to xxx.xxx.xxx.xxx
Tue Jan 19 09:04:40 2010: Timeout occurred
Tue Jan 19 09:04:40 2010: Authentication to xxx.xxx.xxx.xxx : failure
Tue Jan 19 09:04:40 2010: Initiating connection to xxx.xxx.xxx.xxx
Tue Jan 19 09:04:40 2010: Timeout occurred
Tue Jan 19 09:04:40 2010: Authentication to xxx.xxx.xxx.xxx : failure
Tue Jan 19 09:04:40 2010: Initiating connection to xxx.xxx.xxx.xxx
Tue Jan 19 09:04:40 2010: Timeout occurred
Tue Jan 19 09:04:40 2010: Authentication to xxx.xxx.xxx.xxx : failure

etc.
George
Moderator
Posts
5421
Karma
1

Re: Feature request

Tue Jan 19, 2010 5:07 pm
I have no intention to make this configurable, it will not make any difference in my opinion. You might get marginally more peers, but they will probably be slow. If it takes longer then 20 seconds to accept a TCP connection and to send 68 bytes of the authentication over it, then it is probably a slow peer.

But you can change it yourself.

On ubuntu or any debian based distribution, the following command should install all build dependencies for ktorrent:

apt-get build-dep ktorrent
George
Moderator
Posts
5421
Karma
1

Re: Feature request

Fri Feb 26, 2010 8:08 pm
The following things are required to build ktorrent:

cmake
Qt development packages
KDE development packages
taglib development packages
libgmp development packages
libqca2 development packages
boost development packages
KDE pim libraries development packages

That should be about it.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]