curl-curl/lib/vssh
Stefan Eissing 5b80b4c012
lib: replace getsock() logic with pollsets
`getsock()` calls operated on a global limit that could
not be configure beyond 16 sockets. This is no longer adequate
with the new happy eyeballing strategy.

Instead, do the following:
- make `struct easy_pollset` dynamic. Starting with
  a minimal room for two sockets, the very common case,
  allow it to grow on demand.
- replace all protocol handler getsock() calls with pollsets
  and a CURLcode to return failures
- add CURLcode return for all connection filter `adjust_pollset()`
  callbacks, since they too can now fail.
- use appropriately in multi.c and multi_ev.c
- fix unit2600 to trigger pollset growth

Closes #18164
2025-08-04 23:43:13 +02:00
..
.checksrc checksrc: reduce exceptions, apply again to curlx 2025-06-27 17:33:35 +02:00
curl_path.c tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
curl_path.h lib: include files using known path 2025-04-08 17:00:00 +02:00
libssh2.c lib: replace getsock() logic with pollsets 2025-08-04 23:43:13 +02:00
libssh.c lib: replace getsock() logic with pollsets 2025-08-04 23:43:13 +02:00
ssh.h libssh: Use sftp_aio instead of sftp_async for sftp_recv 2025-07-28 22:35:39 +02:00
wolfssh.c lib: replace getsock() logic with pollsets 2025-08-04 23:43:13 +02:00