Repository navigation
happy-eyeballs: Report the getaddrinfo error for a failed lookup - #918
Merged
Merged
Conversation
test_happy_eyeballs_gai_error resolves an .invalid host and expects a non-zero error code and a message other than "Success". On Linux the connector stores errno instead of getaddrinfo's result, so both fail. Refs #903
build_addr_list stored GetSockError() (errno / WSAGetLastError()) and its strerror when getaddrinfo failed, but getaddrinfo reports through its result: on Linux the error code was 0 and the message "Success". Store the result and its gai_strerror text (gai_strerrorA on Windows, the narrow form under UNICODE). The new define sits in the existing platform block, so no platform conditional is added. Fixes #903
zackees
marked this pull request as ready for review
October 15, 2026 22:50
zackees
enabled auto-merge
October 15, 2026 22:50
Member
Author
|
RED confirmed in PR CI (run 38818130531, Rust Tier 2 Linux): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #903.
RED (
test: A failed happy-eyeballs name lookup reports its own error): newtest/cmocka/test_happy_eyeballs_gai_error.cresolves an.invalidhost and expects a non-zero error code and a message other than "Success". Expected to fail on Linux, where the error code is 0 and the message "Success" (seen in the #880 characterization run); PR CI shows the RED run.GREEN (
happy-eyeballs: Report the getaddrinfo error for a failed lookup): storegetaddrinfo's result and itsgai_strerrortext (gai_strerrorAon Windows, the narrow form underUNICODE). The new define sits in the existing#ifdef _WIN32block: the file's platform-conditional count stays 8, so the #848 ratchet is unaffected.Local:
cc -fsyntax-only -std=gnu11 -Wall -Werrorok;./lintok. Tier 2 OFF:test_happy_eyeballs_gai_errorandtest_rtmp_dbr_user_bitrate(also links happy-eyeballs) pass. Two unrelated tests failed in that run,test_async_delay_audio(real-time audio, #838) andtest_v4l2_busy_signal(a forced camera holder not yet reaped); the harness stops there, so the ON build was not run locally. PR CI runs both.