Refactor read_op

This commit is contained in:
Vinnie Falco committed 2017-08-14 15:30:30 -07:00
1 parent 91fb1c4b53
commit 470ef85982
2 files changed
+7

No files matched your search

@@ -976,6 +976,12 @@ read_some(
using boost::asio::buffer;
using boost::asio::buffer_cast;
using boost::asio::buffer_size;
// Make sure the stream is open
if(failed_)
{
ec = boost::asio::error::operation_aborted;
return 0;
}
close_code code{};
std::size_t bytes_written = 0;
loop: