We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e797d commit 5c0a5c8Copy full SHA for 5c0a5c8
include/asyncpp/io/socket.h
@@ -496,6 +496,9 @@ namespace asyncpp::io {
496
auto that = static_cast<socket_recv_exact_awaitable*>(ptr);
497
auto engine = that->m_socket.service().engine();
498
do {
499
+ if (that->m_completion.result_size == 0) {
500
+ that->m_completion.result = std::make_error_code(std::errc::not_connected);
501
+ }
502
if (that->m_completion.result) {
503
that->m_handle.resume();
504
break;
0 commit comments