mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(libT) I wonder if this will have any affect on the bug reported by Wizardling.
This commit is contained in:
@@ -1179,6 +1179,9 @@ tr_handshakeNew( tr_peerIo * io,
|
||||
{
|
||||
tr_handshake * handshake;
|
||||
|
||||
tr_peerIoSetBandwidth( io, TR_UP, NULL );
|
||||
tr_peerIoSetBandwidth( io, TR_DOWN, NULL );
|
||||
|
||||
handshake = tr_new0( tr_handshake, 1 );
|
||||
handshake->io = io;
|
||||
handshake->crypto = tr_peerIoGetCrypto( io );
|
||||
|
||||
@@ -125,6 +125,7 @@ createSocket( int type )
|
||||
static void
|
||||
setSndBuf( tr_session * session, int fd )
|
||||
{
|
||||
#if 0
|
||||
if( fd >= 0 )
|
||||
{
|
||||
const int sndbuf = session->so_sndbuf;
|
||||
@@ -132,6 +133,7 @@ setSndBuf( tr_session * session, int fd )
|
||||
setsockopt( fd, SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof( sndbuf ) );
|
||||
setsockopt( fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof( rcvbuf ) );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user