mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +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 |
||
---|---|---|
.. | ||
Platforms | ||
cmake_uninstall.cmake.in | ||
CMakeConfigurableFile.in | ||
curl-config.cmake.in | ||
CurlSymbolHiding.cmake | ||
CurlTests.c | ||
FindBearSSL.cmake | ||
FindBrotli.cmake | ||
FindCares.cmake | ||
FindGSS.cmake | ||
FindLibgsasl.cmake | ||
FindLibidn2.cmake | ||
FindLibpsl.cmake | ||
FindLibssh2.cmake | ||
FindLibssh.cmake | ||
FindLibuv.cmake | ||
FindMbedTLS.cmake | ||
FindMSH3.cmake | ||
FindNettle.cmake | ||
FindNGHTTP2.cmake | ||
FindNGHTTP3.cmake | ||
FindNGTCP2.cmake | ||
FindQuiche.cmake | ||
FindRustls.cmake | ||
FindWolfSSH.cmake | ||
FindWolfSSL.cmake | ||
FindZstd.cmake | ||
Macros.cmake | ||
OtherTests.cmake | ||
PickyWarnings.cmake | ||
Utilities.cmake |