Skip to content

Commit eaeaf78

Browse files
committed
Note on full-duplex forward only propagating cancellation error.
1 parent 1f7d714 commit eaeaf78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/full_duplex_forward.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ full_duplex(Stream1 c1, Stream2 c2, Cancel cancel, asio::yield_context yield)
7878

7979
sys::error_code ec;
8080
wait_condition.wait(yield[ec]); // leave cancellation handling to tasks
81-
if (cancel) ec = asio::error::operation_aborted;
81+
if (cancel) ec = asio::error::operation_aborted; // not care about other errors
8282

8383
return or_throw(yield, ec, std::make_pair(fwd_bytes_c1_c2, fwd_bytes_c2_c1));
8484
}

0 commit comments

Comments
 (0)