Codebase list unbound / 1f5cc25
- Fix for wait for udp send to stop when packet is successfully sent. W.C.A. Wijngaards 1 year, 8 months ago
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
55 blocking socket operations.
66 - Fix to wait for blocked write on UDP sockets, with a timeout if it
77 takes too long the packet is dropped.
8 - Fix for wait for udp send to stop when packet is successfully sent.
89
910 22 August 2022: Wouter
1011 - Fix #741: systemd socket activation fails on IPv6.
387387 #endif
388388 /* if we set the fd blocking, other threads suddenly
389389 * have a blocking fd that they operate on */
390 while(
390 while(sent == -1 && (
391391 #ifndef USE_WINSOCK
392392 errno == EAGAIN || errno == EINTR ||
393393 # ifdef EWOULDBLOCK
400400 WSAGetLastError() == WSAENOBUFS ||
401401 WSAGetLastError() == WSAEWOULDBLOCK
402402 #endif
403 ) {
403 )) {
404404 #if defined(HAVE_POLL) || defined(USE_WINSOCK)
405405 struct pollfd p;
406406 int pret;
623623 WSAGetLastError() == WSAENOBUFS ||
624624 WSAGetLastError() == WSAEWOULDBLOCK) {
625625 #endif
626 while(
626 while(sent == -1 && (
627627 #ifndef USE_WINSOCK
628628 errno == EAGAIN || errno == EINTR ||
629629 # ifdef EWOULDBLOCK
636636 WSAGetLastError() == WSAENOBUFS ||
637637 WSAGetLastError() == WSAEWOULDBLOCK
638638 #endif
639 ) {
639 )) {
640640 #if defined(HAVE_POLL) || defined(USE_WINSOCK)
641641 struct pollfd p;
642642 int pret;