From e146f2c7beb5b671c6b74556ecb85d7432b77aac Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Mon, 23 Oct 2017 12:02:48 -0700 Subject: [PATCH] Don't return end_of_stream on win32 file body writes --- CHANGELOG.md | 1 + include/boost/beast/http/impl/file_body_win32.ipp | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) 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; }