Changeset 3365


Ignore:
Timestamp:
Oct 11, 2007, 3:54:33 AM (14 years ago)
Author:
charles
Message:

8 second timeout during handshake, 2.5 minute handshake afterwards

Location:
trunk/libtransmission
Files:
3 edited

Legend:

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

    r3361 r3365  
    288288}
    289289
     290void
     291tr_peerIoSetTimeoutSecs( tr_peerIo * io, int secs )
     292{
     293    bufferevent_settimeout( io->bufev, secs, secs );
     294}
     295
    290296/**
    291297***
  • trunk/libtransmission/peer-io.h

    r3260 r3365  
    8282
    8383int   tr_peerIoIsIncoming( const tr_peerIo * io );
     84
     85void tr_peerIoSetTimeoutSecs( tr_peerIo * io, int secs );
     86
    8487
    8588/**
  • trunk/libtransmission/peer-msgs.c

    r3363 r3365  
    16331633    m->clientAllowedPieces = NULL;
    16341634    setme = tr_publisherSubscribe( m->publisher, func, userData );
     1635    tr_peerIoSetTimeoutSecs( m->io, 150 ); /* error if we don't read or write for 2.5 minutes */
    16351636   
    16361637    if ( tr_peerIoSupportsFEXT( m->io ) )
Note: See TracChangeset for help on using the changeset viewer.