Ignore:
Timestamp:
Nov 16, 2007, 9:47:55 PM (15 years ago)
Author:
charles
Message:

tweak the libevent read buffer size

File:
1 edited

Legend:

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

    r3839 r3841  
    2929
    3030#define IO_TIMEOUT_SECS 8
     31
     32#define TR_RDBUF 2048
    3133
    3234/**
     
    144146    bufferevent_settimeout( c->bufev, IO_TIMEOUT_SECS, IO_TIMEOUT_SECS );
    145147    bufferevent_enable( c->bufev, EV_READ|EV_WRITE );
    146     bufferevent_setwatermark( c->bufev, EV_READ, 0, 1024 );
     148    bufferevent_setwatermark( c->bufev, EV_READ, 0, TR_RDBUF );
    147149
    148150    return c;
     
    286288        bufferevent_settimeout( io->bufev, IO_TIMEOUT_SECS, IO_TIMEOUT_SECS );
    287289        bufferevent_enable( io->bufev, EV_READ|EV_WRITE );
    288         bufferevent_setwatermark( io->bufev, EV_READ, 0, 1024 );
     290        bufferevent_setwatermark( io->bufev, EV_READ, 0, TR_RDBUF );
    289291
    290292        return 0;
Note: See TracChangeset for help on using the changeset viewer.