Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unbuffered-async-client: attempt to fix flickeryness
In this case the server's response was split over two packets. Most of the time these arrived together and the test passed. In the case where the server's second packet was slightly delayed, we'd see the first one (but not be able to process it) and then send a close_notify, and clear the `open_connection` flag. That meant we dropped out of the loop with non-zero `incoming_used`; this failed an assertion. Instead: track received/sent close_notify separately, and try to read any remaining incoming data.
- Loading branch information