oxen-mq/lokimq
Jason Rhinelander f4fad9c194 Fix problems on outgoing disconnect
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.
2020-03-10 13:54:41 -03:00
..
batch.h Add ability to run a batch completion job in the proxy thread 2020-02-11 02:17:12 -04:00
bt_serialize.cpp Fixed string_view c++17 compatibility 2020-02-24 22:20:56 -04:00
bt_serialize.h Workarounds for old cmake/gcc 2020-03-05 01:33:02 -04:00
hex.h Add missing `inline` to de-templatized hex funcs 2020-03-03 15:06:39 -04:00
lokimq.cpp Fix problems on outgoing disconnect 2020-03-10 13:54:41 -03:00
lokimq.h Silence -Wmismatched-tags warning 2020-03-05 01:19:29 -04:00
string_view.h _sv wasn't being defined inline 2020-03-02 15:11:29 -04:00