Ignore:
Timestamp:
Nov 18, 2007, 3:18:26 AM (15 years ago)
Author:
charles
Message:

this should improve download speeds. test it!

File:
1 edited

Legend:

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

    r3859 r3871  
    3131
    3232/* arbitrary */
    33 #define TR_RDBUF (1024*3)
     33#define TR_RDBUF (1024*8)
    3434
    3535/**
     
    408408                   struct evbuffer * buf )
    409409{
    410     tr_peerIoWrite( io, EVBUFFER_DATA(buf), EVBUFFER_LENGTH(buf) );
    411     evbuffer_drain( buf, ~0 );
     410    const size_t n = EVBUFFER_LENGTH( buf );
     411    tr_peerIoWrite( io, EVBUFFER_DATA(buf), n );
     412    evbuffer_drain( buf, n );
    412413}
    413414
Note: See TracChangeset for help on using the changeset viewer.