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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.