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. |
||
---|---|---|
.. | ||
batch.h | ||
bt_serialize.cpp | ||
bt_serialize.h | ||
hex.h | ||
lokimq.cpp | ||
lokimq.h | ||
string_view.h |