mirror of https://github.com/oxen-io/oxen-mq.git
f4fad9c194
This removes two superfluous erases that occur during connection closing (the proxy_close_connection just above them already removes the element from `peers`), and also short-circuits the incoming message loop if our pollitems becomes stale so that we don't try to use a closed connection. It also fixes a bug in the outgoing connection index that was decrementing the wrong connection indices, leading to failures when trying to send on an existing connection after a disconnect. Also adds a test case (which fails before the changes in this commit) to test this. |
||
---|---|---|
.. | ||
Catch2@b3b07215d1 | ||
CMakeLists.txt | ||
common.h | ||
main.cpp | ||
test_batch.cpp | ||
test_commands.cpp | ||
test_connect.cpp | ||
test_requests.cpp | ||
test_string_view.cpp |