Ignore:
Timestamp:
Dec 15, 2008, 9:22:08 PM (12 years ago)
Author:
charles
Message:

(trunk libT) probable fix for the "greedy peer" bug

File:
1 edited

Legend:

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

    r7397 r7402  
    11331133                addStrike( t, peer );
    11341134                peer->doPurge = 1;
     1135                tordbg( t, "setting doPurge because we got an EINVAL error" );
    11351136            }
    11361137            else if( ( e->err == ERANGE )
     
    11401141                /* some protocol error from the peer */
    11411142                peer->doPurge = 1;
     1143                tordbg( t, "setting doPurge because we got an ERANGE, EMSGSIZE, or ENOTCONN error" );
    11421144            }
    11431145            else /* a local error, such as an IO error */
     
    22902292            else
    22912293                ++atom->numFails;
     2294             
     2295            fprintf( stderr, "removing bad peer %s\n", tr_peerIoGetAddrStr( peer->io ) );
    22922296            tordbg( t, "removing bad peer %s", tr_peerIoGetAddrStr( peer->io ) );
    22932297            removePeer( t, peer );
Note: See TracChangeset for help on using the changeset viewer.