Fix async repose rc commands not decrementing peer unhandled message counter
This was causing peers to not be pruned leading to eventual starvation. Fixes #9487
This commit is contained in:
@@ -508,7 +508,7 @@ parse_input(ChildMonitor *self) {
|
|||||||
}
|
}
|
||||||
if (resp) {
|
if (resp) {
|
||||||
if (PyBytes_Check(resp)) send_response_to_peer(msg->peer_id, PyBytes_AS_STRING(resp), PyBytes_GET_SIZE(resp));
|
if (PyBytes_Check(resp)) send_response_to_peer(msg->peer_id, PyBytes_AS_STRING(resp), PyBytes_GET_SIZE(resp));
|
||||||
else if (resp == Py_None) send_response_to_peer(msg->peer_id, NULL, 0);
|
else if (resp == Py_None || resp == Py_True) send_response_to_peer(msg->peer_id, NULL, 0);
|
||||||
Py_CLEAR(resp);
|
Py_CLEAR(resp);
|
||||||
} else send_response_to_peer(msg->peer_id, NULL, 0);
|
} else send_response_to_peer(msg->peer_id, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user