Changeset 11928


Ignore:
Timestamp:
Feb 18, 2011, 12:36:05 AM (11 years ago)
Author:
jch
Message:

Set the read buffer of UTP sockets to a well-defined value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11927 r11928  
    4747 #define EPIPE        WSAECONNRESET
    4848#endif
     49
     50/* The amount of read bufferring that we allow for uTP sockets. */
     51
     52#define UTP_READ_BUFFER_SIZE (256 * 1024)
    4953
    5054static size_t
     
    573577        tr_ndbg( "UTP", "New %s connection",
    574578                 isIncoming ? "incoming" : "outgoing" );
     579        UTP_SetSockopt( utp_socket, SO_RCVBUF, UTP_READ_BUFFER_SIZE );
    575580        UTP_SetCallbacks( utp_socket,
    576581                          &utp_function_table,
    577582                          io );
     583       
    578584    }
    579585
Note: See TracChangeset for help on using the changeset viewer.