Ignore:
Timestamp:
May 13, 2006, 6:48:37 AM (16 years ago)
Author:
titer
Message:

Adds automatic peer banning.
At first, peers get only banned for the bad pieces they've contributed to, i.e. we continue to ask them for other parts of the torrent. If more bad data keeps coming, the peer gets completely banned.
Based on Jeremiah Morris' patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.h

    r133 r253  
    4848void        tr_peerSetOptimistic ( tr_peer_t *, int );
    4949int         tr_peerIsOptimistic  ( tr_peer_t * );
     50void        tr_peerBlame         ( tr_torrent_t *, tr_peer_t *,
     51                                   int piece, int success );
    5052
    5153#endif
Note: See TracChangeset for help on using the changeset viewer.