diff --git a/CHANGELOG.md b/CHANGELOG.md index 32b32e78..6d63ca42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 126: * Update README.md * Update stream write documentation for end of stream changes * Tidy up unused variable warnings +* Don't return end_of_stream on win32 file body writes -------------------------------------------------------------------------------- diff --git a/include/boost/beast/http/impl/file_body_win32.ipp b/include/boost/beast/http/impl/file_body_win32.ipp index 9c7ae6be..0243732e 100644 --- a/include/boost/beast/http/impl/file_body_win32.ipp +++ b/include/boost/beast/http/impl/file_body_win32.ipp @@ -471,8 +471,6 @@ operator()( sr_.next(ec, null_lambda{}); BOOST_ASSERT(! ec); BOOST_ASSERT(sr_.is_done()); - if(! sr_.keep_alive()) - ec = error::end_of_stream; } } h_(ec, bytes_transferred_); @@ -544,8 +542,6 @@ write_some( sr.next(ec, detail::null_lambda{}); BOOST_ASSERT(! ec); BOOST_ASSERT(sr.is_done()); - if(! sr.keep_alive()) - ec = error::end_of_stream; } return nNumberOfBytesToWrite; }