Changeset 6556 for trunk/libtransmission/net.c
- Timestamp:
- Aug 16, 2008, 9:06:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/net.c
r6552 r6556 44 44 #include "natpmp.h" 45 45 #include "net.h" 46 #include "peer-io.h" 46 47 #include "platform.h" 47 48 #include "utils.h" … … 123 124 fd = makeSocketNonBlocking( fd ); 124 125 126 #if 0 125 127 if( fd >= 0 ) { 126 128 const int buffsize = 1500*3; /* 3x MTU for most ethernet/wireless */ 127 129 setsockopt( fd, SOL_SOCKET, SO_SNDBUF, &buffsize, sizeof( buffsize ) ); 128 130 } 131 #endif 129 132 130 133 return fd; … … 139 142 140 143 if( ( s = createSocket( type, priority ) ) < 0 ) 141 {142 144 return -1; 143 }144 145 145 146 memset( &sock, 0, sizeof( sock ) ); … … 162 163 } 163 164 165 tr_deepLog( __FILE__, __LINE__, NULL, "New OUTGOING connection %d (%s)", 166 s, tr_peerIoAddrStr( addr, port ) ); 167 164 168 return s; 165 169 }
Note: See TracChangeset
for help on using the changeset viewer.