Remove incorrect ASSERT in websocket read

fix #2264
This commit is contained in:
Richard Hodges
2022-09-01 15:44:22 +02:00
parent af79b4d0fd
commit d86a61f458
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
* Remove incorrect ASSERT in WebSocket read.
--------------------------------------------------------------------------------
Version 335:
* Reduce size of multi_buffer.

View File

@ -123,7 +123,11 @@ public:
BOOST_ASSERT(!ec);
if(impl.check_stop_now(ec))
{
BOOST_ASSERT(ec == net::error::operation_aborted);
// Issue 2264 - There is no guarantee that the next
// error will be operation_aborted.
// The error could be a result of the peer resetting the
// connection
// BOOST_ASSERT(ec == net::error::operation_aborted);
goto upcall;
}
// VFALCO Should never get here