Registered Member
|
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. Thanks N |
Moderator
|
|
Registered Member
|
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 |
Moderator
|
What makes you think a peer is going to respond after it hasn't responded for 20 seconds ?
|
Registered Member
|
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. |
Moderator
|
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 |
Moderator
|
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. |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]