← Commit list

745344ea4e

Stefan Eissing
Stefan Eissing
2026-03-21
SUCCESS Duration: 518s

Subject

hostip: fix !no_signal mixup in resolve refaactor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/hostip.c+2 -2
@@ -637,7 +637,7 @@ static CURLcode resolv_alarm_timeout(struct Curl_easy *data,
DEBUGASSERT(hostname && *hostname);
DEBUGASSERT(timeoutms > 0);
- DEBUGASSERT(data->set.no_signal);
+ DEBUGASSERT(!data->set.no_signal);
#ifndef CURL_DISABLE_DOH
DEBUGASSERT(!data->set.doh);
#endif
@@ -783,7 +783,7 @@ CURLcode Curl_resolv(struct Curl_easy *data,
return CURLE_OPERATION_TIMEDOUT;
#ifdef USE_ALARM_TIMEOUT
- if(timeoutms && !data->set.no_signal) {
+ if(timeoutms && data->set.no_signal) {
/* Cannot use ALARM when signals are disabled */
timeoutms = 0;
}
tests/http/test_06_eyeballs.py+2 -0
@@ -105,6 +105,8 @@ class TestEyeballs:
# check timers when trying 3 unresponsive addresses
@pytest.mark.skipif(condition=not Env.curl_has_feature('IPv6'),
reason='curl lacks ipv6 support')
+ @pytest.mark.skipif(condition=not Env.curl_has_feature('AsynchDNS'),
+ reason='curl lacks async DNS support')
@pytest.mark.skipif(condition=not Env.curl_is_verbose(), reason="needs curl verbose strings")
def test_06_13_timers(self, env: Env):
curl = CurlClient(env=env)