Tobias Frauenschläger
1093a36bc3
Fix flaky tcp bind on Windows test runs
...
Windows test code pre-picked a random port via GetRandomPort() (returning
a value in [49152, 65535]) before calling bind(), with no check that the
port was free and no retry on collision. Under load this occasionally
collided with an already-bound port and aborted the test with
"tcp bind failed", producing intermittent Jenkins failures (e.g. PRB
windows-test-v2 #17140 in the OCSP responder test).
The Unix path already does the right thing: bind to port 0 (OS-assigned
ephemeral) and read the port back via getsockname(). The same primitives
exist in Winsock 1.1, so drop the USE_WINDOWS_API guard around the
getsockname block in tcp_listen()/udp_accept() and remove the per-caller
GetRandomPort() workarounds in the OCSP responder, server example, and
the api.c / test_ossl_bio.c test sites. socklen_t is already typedef'd
as int on Windows in test.h.
GetRandomPort() itself is left in place since it is a static inline in a
shipped public test header.
2026-05-04 10:35:04 +02:00
..
2026-02-18 09:52:21 -07:00
2026-04-06 00:53:57 -05:00
2026-02-26 11:44:50 -08:00
2026-04-15 11:27:44 -06:00
2026-04-20 10:45:23 +03:00
2026-04-20 10:45:23 +03:00
2026-04-14 13:25:15 +10:00
2026-04-14 13:25:15 +10:00
2026-02-18 09:52:21 -07:00
2026-04-15 17:05:32 +10:00
2026-04-15 17:05:32 +10:00
2026-03-20 16:19:11 -05:00
2026-03-20 16:16:21 -05:00
2026-04-07 13:18:53 -05:00
2026-02-18 09:52:21 -07:00
2026-04-16 08:51:17 +10:00
2026-04-14 13:25:15 +10:00
2026-04-21 10:21:31 +10:00
2026-04-21 10:21:31 +10:00
2026-04-15 17:05:32 +10:00
2026-04-15 17:05:32 +10:00
2026-04-15 17:05:32 +10:00
2026-04-15 17:05:32 +10:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-16 08:51:17 +10:00
2026-04-14 13:25:15 +10:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-06 00:53:57 -05:00
2026-02-18 09:52:21 -07:00
2026-04-03 12:10:42 +02:00
2026-04-03 12:10:42 +02:00
2026-04-23 11:26:33 +02:00
2026-04-23 11:26:33 +02:00
2026-03-31 12:48:12 -04:00
2026-03-26 14:56:00 -04:00
2026-03-31 12:48:12 -04:00
2026-03-26 14:56:00 -04:00
2026-04-02 12:35:15 +02:00
2026-03-05 08:51:52 -06:00
2026-04-07 13:18:53 -05:00
2026-02-18 09:52:21 -07:00
2026-04-30 14:16:05 -06:00
2026-04-30 14:16:05 -06:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-24 06:52:49 -06:00
2026-02-18 09:52:21 -07:00
2026-02-26 14:51:49 -06:00
2026-02-26 10:26:20 -06:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-30 11:03:06 +02:00
2026-04-24 06:52:49 -06:00
2026-04-30 11:03:06 +02:00
2026-04-15 03:09:11 +02:00
2026-02-26 11:44:50 -08:00
2026-04-02 22:54:10 -05:00
2026-04-02 11:24:25 +02:00
2026-04-03 17:13:29 -06:00
2026-02-18 09:52:21 -07:00
2026-05-04 10:35:04 +02:00
2026-04-21 19:05:26 +03:00
2026-04-13 15:50:26 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-06 00:53:57 -05:00
2026-02-18 09:52:21 -07:00
2026-04-06 21:18:32 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-23 09:36:32 +02:00
2026-04-23 09:36:32 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-10 07:58:37 +10:00
2026-02-18 09:52:21 -07:00
2026-04-21 02:35:57 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-29 09:58:45 -07:00
2026-04-09 13:09:17 -04:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-09 16:24:12 -05:00
2026-03-31 09:29:46 -07:00
2026-04-25 11:47:24 -05:00
2026-04-23 11:03:24 +02:00
2026-04-15 03:09:11 +02:00
2026-04-15 03:08:50 +02:00
2026-04-10 15:43:21 +10:00
2026-04-10 15:43:21 +10:00
2026-04-24 06:52:49 -06:00
2026-04-24 06:52:49 -06:00
2026-04-16 08:51:17 +10:00
2026-04-14 13:25:15 +10:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-15 17:29:37 -04:00
2026-04-10 11:17:45 -04:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-15 18:03:39 -06:00
2026-04-15 11:28:03 -06:00
2026-04-08 17:07:42 +09:00
2026-04-08 17:07:42 +09:00
2026-04-30 18:32:07 +02:00
2026-04-30 18:32:07 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-14 13:25:15 +10:00
2026-04-14 13:25:15 +10:00
2026-04-24 07:23:07 -05:00
2026-04-22 14:44:15 -06:00
2026-02-26 10:18:31 -06:00
2026-02-26 10:18:31 -06:00
2026-04-17 10:41:53 +10:00
2026-04-17 10:41:53 +10:00
2026-04-10 15:43:21 +10:00
2026-04-10 15:43:21 +10:00
2026-04-10 10:48:17 -07:00
2026-02-18 09:52:21 -07:00
2026-04-14 07:47:29 -05:00
2026-04-13 17:02:51 -05:00