oxen-mq/tests
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
..
Catch2@b3b07215d1 Add initial test suite with some batch job tests 2020-02-06 18:10:26 -04:00
CMakeLists.txt Use modern cmake thread initialization 2020-03-02 18:51:16 -04:00
common.h Fix delayed proxy-scheduled batch jobs 2020-02-11 19:08:19 -04:00
main.cpp Add initial test suite with some batch job tests 2020-02-06 18:10:26 -04:00
test_batch.cpp Added support for general (non-SN) communications 2020-02-28 00:16:43 -04:00
test_commands.cpp Add auth and ConnectionID routing tests 2020-02-29 16:06:55 -04:00
test_connect.cpp Fix problems on outgoing disconnect 2020-03-10 13:54:41 -03:00
test_requests.cpp Added support for general (non-SN) communications 2020-02-28 00:16:43 -04:00
test_string_view.cpp Fixed string_view c++17 compatibility 2020-02-24 22:20:56 -04:00