Ticket #989 (new defect)

Opened 6 years ago

Last modified 5 years ago

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.

Change History

comment:1 Changed 5 years ago by anonymous

I found this is the culprit in ChokeManager::set_snubbed:

base->set_queued(false);

After commenting this out, I can normally snub and unsnub peers. Not sure this will break something else or not...

Note: See TracTickets for help on using tickets.