mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
(trunk libT)
11:59 < klapaucjusz> charles: net.c line 314. 11:59 < klapaucjusz> Please change the value to 8192. 12:00 < charles> okay but why? 12:00 < klapaucjusz> I'm not sure it will trigger, but having space for 4 full-sized segments is always a good idea. 12:01 < klapaucjusz> It means you have a better chance of recovering from a lost segment
This commit is contained in:
parent
560ecbe9bb
commit
d1935a4812
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ tr_netOpenTCP( tr_session * session,
|
||||||
|
|
||||||
/* seeds don't need much of a read buffer... */
|
/* seeds don't need much of a read buffer... */
|
||||||
if( isSeed ) {
|
if( isSeed ) {
|
||||||
int n = 1024 * 2;
|
int n = 8192;
|
||||||
if( setsockopt( s, SOL_SOCKET, SO_RCVBUF, &n, sizeof(n) ) )
|
if( setsockopt( s, SOL_SOCKET, SO_RCVBUF, &n, sizeof(n) ) )
|
||||||
tr_inf( "Unable to set SO_RCVBUF on socket %d: %s", s, tr_strerror( sockerrno ) );
|
tr_inf( "Unable to set SO_RCVBUF on socket %d: %s", s, tr_strerror( sockerrno ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue