curl-curl/tests/server
Viktor Szakats 5681628e2d
tests/server: sync wait_ms() with the libcurl implementation
It contains a series of bugfixes and updates applied to libcurl's
`Curl_wait_ms()` over the years, but missed from the copy in
`tests/server/util.c`:
- d65321f939,
  52e822173a,
  5912da253b
- 4a8f459837
- 1ad49feb71

It fixes `wait_ms()` to check for, and return `SOCKERRNO`. Fixing error
handling on Windows.

Also:
- tests/server: change callers to check `SOCKERRNO`.
- `wait_ms()`: fix to check for the correct error code on Windows.
  Pending for `Curl_wait_ms()`: #16621.
- `Curl_wait_ms()`: tidy-up `Sleep()` argument cast (nit).
- lib/curl_trc: drop an unused header.

Closes #16627
2025-03-09 12:04:30 +01:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
.gitignore build: drop unused getpart tool 2025-02-25 01:52:13 +01:00
base64.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CMakeLists.txt addrinfo: add curl macro to avoid redefining foreign symbols 2025-02-13 12:46:39 +01:00
disabled.c asyn-thread: use c-ares to resolve HTTPS RR 2025-01-25 23:46:14 +01:00
getpart.c build: set -O3 and tune WinCE in CI, fix getpart, vtls_scache fallouts 2025-02-26 21:23:11 +01:00
getpart.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for servers 2025-02-13 12:46:40 +01:00
Makefile.inc build: tidy-ups around inet_pton 2025-03-05 03:10:45 +01:00
mqttd.c tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00
resolve.c tests/server: round of tidy-ups (part 2) 2025-03-07 13:48:07 +01:00
rtspd.c tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00
server_setup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
server_sockaddr.h build: prefer USE_IPV6 macro internally (was: ENABLE_IPV6) 2024-04-13 08:33:26 +00:00
sockfilt.c tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00
socksd.c tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00
sws.c tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00
tftp.h tests: tidy up types in server code 2024-05-13 11:16:26 +02:00
tftpd.c tests/server: round of tidy-ups (part 2) 2025-03-07 13:48:07 +01:00
util.c tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00
util.h tests/server: sync wait_ms() with the libcurl implementation 2025-03-09 12:04:30 +01:00