public inbox for cygwin-developers@cygwin.com
 help / color / mirror / Atom feed
* Non-blocking fhandler_socket_wsock::send_internal ?
@ 2020-03-30 20:45 Ford, Brian
  2020-03-30 21:45 ` Ford, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Ford, Brian @ 2020-03-30 20:45 UTC (permalink / raw)
  To: cygwin-developers

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!

[https://elearning.flightsafety.com/media/wysiwyg/SIGNATURE_BANNER/FlightSafety_65th_logo.jpg]<https://elearning.flightsafety.com/fsi_65_redirect>

Brian Ford  *  Systems Architect
FVS  *  FVS Engineering  *  5695 Campus Parkway  *  Hazelwood, MO, 63042  *  United States
Tel: 314.551.8460  *  Cell: 314.3276088
Brian.Ford@FlightSafety.com<mailto:Brian.Ford@FlightSafety.com>  *  flightsafety.com<https://www.flightsafety.com/>  *  A Berkshire Hathaway company
Privacy Notice<https://www.flightsafety.com/fs_privacynotice.php>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-30 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 20:45 Non-blocking fhandler_socket_wsock::send_internal ? Ford, Brian
2020-03-30 21:45 ` Ford, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).