Ticket #989 (new defect)
manual snub permanently sets peer not interested
| Reported by: | anonymous | Owned by: | rakshasa |
|---|---|---|---|
| Priority: | normal | Component: | libtorrent |
| Version: | HEAD | Severity: | normal |
| Keywords: | Cc: |
Description
When manually snubbing a peer with the '*' key, its interested state is permanently set to 'n'. Even after unsnubbing it again, it stays in that state even though it (was) really interested, and so will never again receive data. The only way to reset this is to disconnect the peer and hope it connects again.
Note: See
TracTickets for help on using
tickets.

I found this is the culprit in ChokeManager::set_snubbed:
After commenting this out, I can normally snub and unsnub peers. Not sure this will break something else or not...