curl/m4
Daniel Stenberg c72cefea0f
select: use poll() if existing, avoid poll() with no sockets
poll() on macOS 10.12 was deemed broken in 2016 when we discovered that
it misbehaves when provided with no sockets to wait for. The
HAVE_POLL_FINE is used to mark a poll() implementation that behaves
correctly: it *should* still wait the timeout time.

curl has therefore opted to use select() on Apple operating systems ever
since. To avoid the risk that this or other breakage cause problems.

However, using select() internally is also bad because it suffers from
problems when using file descriptors beyond 1024.

This change makes poll() used if it is present, but if there is no
sockets to wait for it avoids using poll() and instead falls back to
select() - but without any sockets to wait for there is no 1024 problem.

This removes all previous special-handling involving HAVE_POLL_FINE.

ref: https://daniel.haxx.se/blog/2016/10/11/poll-on-mac-10-12-is-broken/

Closes #15096
2024-10-01 15:11:50 +02:00
..
.gitignore
curl-amissl.m4
curl-bearssl.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-compilers.m4 tidy-up: indentation in autotools sources 2024-09-25 09:10:45 +02:00
curl-confopts.m4 tidy-up: indentation in autotools sources 2024-09-25 09:10:45 +02:00
curl-functions.m4 select: use poll() if existing, avoid poll() with no sockets 2024-10-01 15:11:50 +02:00
curl-gnutls.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-mbedtls.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-openssl.m4 tidy-up: indentation in autotools sources 2024-09-25 09:10:45 +02:00
curl-override.m4 tidy-up: indent, whitespace, #error in make files 2024-09-22 09:51:15 +02:00
curl-reentrant.m4 tidy-up: indentation in autotools sources 2024-09-25 09:10:45 +02:00
curl-rustls.m4 configure: catch Apple in more target triplets 2024-09-21 12:21:13 +02:00
curl-schannel.m4
curl-sectransp.m4
curl-sysconfig.m4 configure: catch Apple in more target triplets 2024-09-21 12:21:13 +02:00
curl-wolfssl.m4 tidy-up: indentation in autotools sources 2024-09-25 09:10:45 +02:00
xc-am-iface.m4
xc-cc-check.m4
xc-lt-iface.m4
xc-val-flgs.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
zz40-xc-ovr.m4
zz50-xc-ovr.m4
zz60-xc-ovr.m4