Changeset 11954


Ignore:
Timestamp:
Feb 18, 2011, 12:43:43 AM (11 years ago)
Author:
jch
Message:

Don't mark atoms as non-uTP unless we failed to connect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r11951 r11954  
    11291129          void       * vhandshake )
    11301130{
     1131    int errcode = errno;
    11311132    tr_handshake * handshake = vhandshake;
    11321133
     
    11381139                                    tr_peerIoGetTorrentHash( io ) ) :
    11391140            NULL;
    1140         if( tor ) {
     1141        /* Don't mark a peer as non-uTP unless it's really a connect failure. */
     1142        if( tor && ( errcode == ETIMEDOUT || errcode == ECONNREFUSED ) ) {
    11411143            tr_torrentLock( tor );
    11421144            tr_peerMgrSetUtpFailed( tor,
     
    11441146                                    TRUE );
    11451147            tr_torrentUnlock( tor );
    1146         } else {
    1147             tr_nerr( "UTP", "Eek -- couldn't find torrent for outgoing I/O." );
    11481148        }
    11491149
Note: See TracChangeset for help on using the changeset viewer.