- Fix for wait for udp send to stop when packet is successfully sent.
W.C.A. Wijngaards
1 year, 8 months ago
5 | 5 |
blocking socket operations.
|
6 | 6 |
- Fix to wait for blocked write on UDP sockets, with a timeout if it
|
7 | 7 |
takes too long the packet is dropped.
|
|
8 |
- Fix for wait for udp send to stop when packet is successfully sent.
|
8 | 9 |
|
9 | 10 |
22 August 2022: Wouter
|
10 | 11 |
- Fix #741: systemd socket activation fails on IPv6.
|
387 | 387 |
#endif
|
388 | 388 |
/* if we set the fd blocking, other threads suddenly
|
389 | 389 |
* have a blocking fd that they operate on */
|
390 | |
while(
|
|
390 |
while(sent == -1 && (
|
391 | 391 |
#ifndef USE_WINSOCK
|
392 | 392 |
errno == EAGAIN || errno == EINTR ||
|
393 | 393 |
# ifdef EWOULDBLOCK
|
|
400 | 400 |
WSAGetLastError() == WSAENOBUFS ||
|
401 | 401 |
WSAGetLastError() == WSAEWOULDBLOCK
|
402 | 402 |
#endif
|
403 | |
) {
|
|
403 |
)) {
|
404 | 404 |
#if defined(HAVE_POLL) || defined(USE_WINSOCK)
|
405 | 405 |
struct pollfd p;
|
406 | 406 |
int pret;
|
|
623 | 623 |
WSAGetLastError() == WSAENOBUFS ||
|
624 | 624 |
WSAGetLastError() == WSAEWOULDBLOCK) {
|
625 | 625 |
#endif
|
626 | |
while(
|
|
626 |
while(sent == -1 && (
|
627 | 627 |
#ifndef USE_WINSOCK
|
628 | 628 |
errno == EAGAIN || errno == EINTR ||
|
629 | 629 |
# ifdef EWOULDBLOCK
|
|
636 | 636 |
WSAGetLastError() == WSAENOBUFS ||
|
637 | 637 |
WSAGetLastError() == WSAEWOULDBLOCK
|
638 | 638 |
#endif
|
639 | |
) {
|
|
639 |
)) {
|
640 | 640 |
#if defined(HAVE_POLL) || defined(USE_WINSOCK)
|
641 | 641 |
struct pollfd p;
|
642 | 642 |
int pret;
|