Commit d59dc50
committed
Fix custom_socket test failure under Valgrind on Ubuntu 24.04
Set SO_REUSEADDR before bind() so the port can be reused when still in
TIME_WAIT from prior tests, and connect to 127.0.0.1 instead of
localhost to avoid IPv6 resolution mismatch with the IPv4-only socket.1 parent 8db55fe commit d59dc50
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
| |||
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
356 | | - | |
| 359 | + | |
357 | 360 | | |
358 | 361 | | |
359 | 362 | | |
| |||
0 commit comments