Changeset 3361


Ignore:
Timestamp:
Oct 11, 2007, 2:50:05 AM (15 years ago)
Author:
charles
Message:

Try out some of SoftwareElves?' suggestions for faster startup connections

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r3271 r3361  
    2525#include "utils.h"
    2626
     27#define IO_TIMEOUT_SECS 8
     28
    2729/**
    2830***
     
    137139                                gotErrorWrapper,
    138140                                c );
     141    bufferevent_settimeout( c->bufev, IO_TIMEOUT_SECS, IO_TIMEOUT_SECS );
    139142    bufferevent_enable( c->bufev, EV_READ|EV_WRITE );
    140143    return c;
     
    276279                                     gotErrorWrapper,
    277280                                     io );
     281        bufferevent_settimeout( io->bufev, IO_TIMEOUT_SECS, IO_TIMEOUT_SECS );
    278282        bufferevent_enable( io->bufev, EV_READ|EV_WRITE );
    279283
  • trunk/libtransmission/peer-mgr.c

    r3359 r3361  
    6565    /* set this too high and there will be a lot of churn.
    6666     * set it too low and you'll get peers too slowly */
    67     MAX_RECONNECTIONS_PER_PULSE = 8,
     67    MAX_RECONNECTIONS_PER_PULSE = 10,
    6868
    6969    /* corresponds to ut_pex's added.f flags */
Note: See TracChangeset for help on using the changeset viewer.