curl/tests/server
Viktor Szakats 9002d3350c
servers: minor socket error handling fixes
- sws: fix socket error code in `select()` failure message.
  Spotted by Copilot
  Bug: https://github.com/curl/curl/pull/21998#discussion_r3409469444
- sws: do not call `SOCKERRNO` twice on error.
- dnsd: do not call `SOCKERRNO` twice on error.
- dnsd: replace `goto` with `while()` to sync with rest of code.
- dnsd: `sendto()` fail message fixes:
  - replace `int` cast with `%zu` mask.
  - drop redundant newline.
  - show socket error string like rest of code.
  - report not-fully-sent error separately from socket errors.

Closes #22007
2026-06-14 16:16:25 +02:00
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
dnsd.c servers: minor socket error handling fixes 2026-06-14 16:16:25 +02:00
first.c tidy-up: drop stray comparisons with literal zero 2026-06-10 15:15:54 +02:00
first.h build: include curlx headers directly in src and tests 2026-03-16 12:05:39 +01:00
getpart.c tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tests/server: drop unused curlx/version_win32.c 2026-03-08 18:17:11 +01:00
mqttd.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c rtspd: sync up sleep loop with sws 2026-06-14 16:16:25 +02:00
sockfilt.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
socksd.c tests/servers: do not interpret unlink() retval as errno 2026-06-14 14:25:02 +02:00
sws.c servers: minor socket error handling fixes 2026-06-14 16:16:25 +02:00
tftpd.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
util.c tests/servers: do not interpret unlink() retval as errno 2026-06-14 14:25:02 +02:00