Non-blocking fhandler_socket_wsock::send_internal ?

Ford, Brian
Mon Mar 30 20:45:27 GMT 2020

I'm trying to debug an application that occasionally takes an excessive amount of time in the sendto call of a non-blocking UDP socket and I noticed the following code that I didn't understand but looked slightly suspicious:
1423       while (res && (WSAGetLastError () == WSAEWOULDBLOCK)
1424              && !(res = wait_for_events (FD_WRITE | FD_CLOSE, wait_flags)));

Could you explain why I shouldn't be concerned about a non-blocking socket apparently calling a function labeled wait_for_events before returning :-)?

Thank you for your time!


Brian Ford  *  Systems Architect
FVS  *  FVS Engineering  *  5695 Campus Parkway  *  Hazelwood, MO, 63042  *  United States
Tel: 314.551.8460  *  Cell: 314.3276088<>  *<>  *  A Berkshire Hathaway company
Privacy Notice<>

More information about the Cygwin-developers mailing list