Changeset 133 for trunk/libtransmission


Ignore:
Timestamp:
Mar 3, 2006, 12:53:55 PM (16 years ago)
Author:
titer
Message:

Quick fix for the 'getting unconnectable' problem (adds a timeout on
incoming connections)

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r109 r133  
    265265}
    266266
     267uint64_t tr_peerDate( tr_peer_t * peer )
     268{
     269    return peer->date;
     270}
     271
    267272/***********************************************************************
    268273 * tr_peerHash
  • trunk/libtransmission/peer.h

    r109 r133  
    3333void        tr_peerRem           ( tr_torrent_t *, int );
    3434int         tr_peerRead          ( tr_torrent_t *, tr_peer_t * );
     35uint64_t    tr_peerDate          ( tr_peer_t * );
    3536uint8_t *   tr_peerHash          ( tr_peer_t * );
    3637void        tr_peerPulse         ( tr_torrent_t * );
  • trunk/libtransmission/transmission.c

    r132 r133  
    656656                goto removePeer;
    657657            }
     658            if( date1 > tr_peerDate( h->acceptPeers[ii] ) + 10000 )
     659            {
     660                /* Give them 10 seconds to send the handshake */
     661                tr_peerDestroy( h->fdlimit, h->acceptPeers[ii] );
     662                goto removePeer;
     663            }
    658664            ii++;
    659665            continue;
Note: See TracChangeset for help on using the changeset viewer.