-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests fail with libcurl 8.11.1 #1165
Comments
UPDATE: I found out that it's because my router resolved all bad_host to $ curl bad_host -v
* Host bad_host:80 was resolved.
* IPv6: (none)
* IPv4: 127.0.0.2
* Trying 127.0.0.2:80...
* connect to 127.0.0.2 port 80 from 127.0.0.1 port 49058 failed: Connection refused
* Failed to connect to bad_host port 80 after 144 ms: Could not connect to server
* closing connection #0
curl: (7) Failed to connect to bad_host port 80 after 144 ms: Could not connect to server I didn't know if it's a common issue. Maybe it's better to consider this situation and let it pass the tests? Thanks a lot for your great work! |
@Jerry-Terrasse thanks for reporting and investigating this! A "or" between those two error codes would make them more reliable indeed. I would be open for a PR introduction this "fix" with a comment explaining why. |
…for bad hosts (issue libcpr#1165)
…for bad hosts (issue libcpr#1165)
…for bad hosts (issue libcpr#1165)
Description
When running tests after building cpr, I get:
LastTest.log
Example/How to Reproduce
Possible Fix
I've had a look into
test/get_tests.cpp
, the test failed at line:EXPECT_EQ(ErrorCode::COULDNT_RESOLVE_HOST, response.error.code);
In LastTest.log:
Which means
libcurl
on my machine returns error code7
instead of6
:Therefore, maybe it's caused by a change in the upstream
libcurl
.Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: