]> granicus.if.org Git - transmission/commitdiff
(libT) I wonder if this will have any affect on the bug reported by Wizardling.
authorCharles Kerr <charles@transmissionbt.com>
Mon, 24 Nov 2008 21:59:00 +0000 (21:59 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Mon, 24 Nov 2008 21:59:00 +0000 (21:59 +0000)
libtransmission/handshake.c
libtransmission/net.c

index ee08093dc1b3edea4df49af4e748645892c32b5e..68036337ab00ef98cb53f248a3c47e72a0d3ad52 100644 (file)
@@ -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 );
index 4eb5515579d5748a4ab1948251d28048d081f193..ba40a250a797d81a095c3f5de8249ea12b9bf0f8 100644 (file)
@@ -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