Changeset 8831


Ignore:
Timestamp:
Jul 18, 2009, 1:09:56 AM (13 years ago)
Author:
charles
Message:

(trunk libT) back out r8765. xref: http://trac.transmissionbt.com/ticket/2253#comment:13

File:
1 edited

Legend:

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

    r8789 r8831  
    269269
    270270    /* keep the iobuf's excess capacity from growing too large */
    271     if( buffer->totallen > ( EVBUFFER_LENGTH( buffer ) + 4096 ) ) {
    272         struct evbuffer * swap = evbuffer_new( );
    273         evbuffer_add( swap, EVBUFFER_DATA( buffer ), EVBUFFER_LENGTH( buffer ) );
    274         evbuffer_free( buffer );
    275         io->outbuf = swap;
     271    if( EVBUFFER_LENGTH( io->outbuf ) == 0 ) {
     272        evbuffer_free( io->outbuf );
     273        io->outbuf = evbuffer_new( );
    276274    }
    277275
Note: See TracChangeset for help on using the changeset viewer.