mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
c72cefea0f
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 |
||
---|---|---|
.. | ||
.gitignore | ||
curl-amissl.m4 | ||
curl-bearssl.m4 | ||
curl-compilers.m4 | ||
curl-confopts.m4 | ||
curl-functions.m4 | ||
curl-gnutls.m4 | ||
curl-mbedtls.m4 | ||
curl-openssl.m4 | ||
curl-override.m4 | ||
curl-reentrant.m4 | ||
curl-rustls.m4 | ||
curl-schannel.m4 | ||
curl-sectransp.m4 | ||
curl-sysconfig.m4 | ||
curl-wolfssl.m4 | ||
xc-am-iface.m4 | ||
xc-cc-check.m4 | ||
xc-lt-iface.m4 | ||
xc-val-flgs.m4 | ||
zz40-xc-ovr.m4 | ||
zz50-xc-ovr.m4 | ||
zz60-xc-ovr.m4 |