http::async_read returns the right byte count on error

fix #1223
This commit is contained in:
Vinnie Falco
2018-11-27 10:09:19 -08:00
parent 770308cdcc
commit 2b16c50321
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
Version 194:
* http::async_read returns the right byte count on error
--------------------------------------------------------------------------------
Version 193:
* Update ssl_stream signatures for networking changes

View File

@@ -313,9 +313,9 @@ operator()(
BOOST_ASIO_CORO_YIELD
async_read_some(
s_, b_, p_, std::move(*this));
bytes_transferred_ += bytes_transferred;
if(ec)
goto upcall;
bytes_transferred_ += bytes_transferred;
if(Condition{}(p_))
goto upcall;
}