Skip to content

Commit

Permalink
Asynchronous accept should not check user-set non-blocking flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed Aug 16, 2017
1 parent 862aed3 commit 230c0d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions asio/include/asio/detail/impl/socket_ops.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ bool non_blocking_accept(socket_type s,
if (ec == asio::error::would_block
|| ec == asio::error::try_again)
{
if (state & user_set_non_blocking)
return true;
// Fall through to retry operation.
}
else if (ec == asio::error::connection_aborted)
Expand Down

0 comments on commit 230c0d2

Please sign in to comment.