Repository navigation
Conversation
dscho
left a comment
There was a problem hiding this comment.
This seems to fix the problem I observed in microsoft/git#799 (comment), thank you so much!
I wonder whether there is any chance to add a regression test to prevent this bug from creeping in again?
Thought about it, but this is tricky. All operating systems besides Windows immediately fail a connection to a port no one is listening on. So, one needs an address that is guaranteed to go into the void everywhere... |
It could be a test case that only runs on Windows, then? I mean, CI coverage of Windows is pretty good ;-) |
In cURL v8.16.0, the behavior changed subtly: Timeouts were added even in circumstances where cURL failed to connect and should have errored out with the corresponding `CURLE_COULDNT_CONNECT` instead. This commit back-ports the fix from curl/curl#18768. Signed-off-by: Johannes Schindelin <[email protected]>
In cURL v8.16.0, the behavior changed subtly: Timeouts were added even in circumstances where cURL failed to connect and should have errored out with the corresponding `CURLE_COULDNT_CONNECT` instead. This commit back-ports the fix from curl/curl#18768. Signed-off-by: Johannes Schindelin <[email protected]>
RFC5737 reserves three address blocks that "SHOULD NOT appear on the public Internet", namely 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 |
They might still be used locally on networks where the curl test suite might run... |
|
It seems IPv6 has a discard prefix, |
When attempts on all addresses have been started, do no longer set any EXPIRE_HAPPY_EYEBALLS timeouts. refs curl#18767
271add6 to
acf5746
Compare
|
thanks for the tip, @dfandrich and @yedayak ! Worked that into a test case. Runs nicely on my macOS box, but of course in CI we get a "network unreachable"...well. well. |
- asyn-ares: fix compiler warning:
```
lib/asyn-ares.c:751:17: error: code will never be executed [clang-diagnostic-unreachable-code,-warnings-as-errors]
751 | char *csv = ares_get_servers_csv(ares->channel);
| ^~~~~~~~~~~~~~~~~~~~
```
- curl_trc: fix missing symbol:
```
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_trc_timer'
collect2: error: ld returned 1 exit status
```
Ref: https://app.circleci.com/pipelines/github/curl/curl/15446/workflows/67afa113-9c49-4249-9180-f6f01fc7dfdd/jobs/149177
Ref: https://github.com/curl/curl/actions/runs/18174250400/job/51736249444#step:33:623
Follow-up to b022389 #18768
- multi: fix `-Wunreachable-code`:
```
lib/multi.c:1107:28: error: code will never be executed [-Werror,-Wunreachable-code]
1107 | size_t timeout_count = Curl_llist_count(&data->state.timeoutlist);
| ^~~~~~~~~~~~~~~~
lib/multi.c:3054:35: error: code will never be executed [-Werror,-Wunreachable-code]
3054 | struct Curl_llist_node *e = Curl_llist_head(&data->state.timeoutlist);
| ^~~~~~~~~~~~~~~
lib/multi.c:3380:7: error: code will never be executed [-Werror,-Wunreachable-code]
3380 | Curl_llist_head(&data->state.timeoutlist);
| ^~~~~~~~~~~~~~~
```
Cherry-picked from #18797
Closes #18799
When attempts on all addresses have been started, do no longer set any EXPIRE_HAPPY_EYEBALLS timeouts.
Add tracing feature
timerto trace transfer related timers set/cleared. Add tracing in multi for event based timer updates.Added pytest test_06_13 to check happy eyeballing against 3 unresponsive addresses and timer use. Improved tcp filter tracing to list the socket as well, so that several ongoing attempts can be easier differentiated.
refs #18767