Commit 735c0cfc authored by Jakob Otto's avatar Jakob Otto

Fix io_res_check for udp_datagram_socket

parent 41311fa2
...@@ -104,7 +104,8 @@ variant<size_t, sec> ...@@ -104,7 +104,8 @@ variant<size_t, sec>
check_udp_datagram_socket_io_res(std::make_signed<size_t>::type res) { check_udp_datagram_socket_io_res(std::make_signed<size_t>::type res) {
if (res < 0) { if (res < 0) {
auto code = last_socket_error(); auto code = last_socket_error();
if (code == std::errc::operation_would_block) if (code == std::errc::operation_would_block
|| code == std::errc::resource_unavailable_try_again)
return sec::unavailable_or_would_block; return sec::unavailable_or_would_block;
return sec::socket_operation_failed; return sec::socket_operation_failed;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment