Skip to content

[EE] Prevent crash when address can't be resolved#37952

Closed
eugeneo wants to merge 2 commits intogrpc:masterfrom
eugeneo:listener-no-address-crash
Closed

[EE] Prevent crash when address can't be resolved#37952
eugeneo wants to merge 2 commits intogrpc:masterfrom
eugeneo:listener-no-address-crash

Conversation

@eugeneo
Copy link
Copy Markdown
Contributor

@eugeneo eugeneo commented Oct 18, 2024

I hit this crash working on fork support but there's a chance it happens if the file descriptor becomes bad for some other reason.

I hit this crash working on fork support but there's a chance
it happens if the file descriptor becomes bad for some other reason.
~AsyncConnectionAcceptor() {
// If uds socket, unlink it so that the corresponding file is deleted.
UnlinkIfUnixDomainSocket(*socket_.sock.LocalAddress());
auto maybe_address = socket_.sock.LocalAddress();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://abseil.io/tips/181, regarding the recommendation to avoid prefixes or suffixes on StatusOr variable names. Suggest: address.

eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Nov 6, 2024
I hit this crash working on fork support but there's a chance it happens if the file descriptor becomes bad for some other reason.

Closes grpc#37952

COPYBARA_INTEGRATE_REVIEW=grpc#37952 from eugeneo:listener-no-address-crash 1e2e82f
PiperOrigin-RevId: 688238823
paulosjca pushed a commit to paulosjca/grpc that referenced this pull request Nov 25, 2024
I hit this crash working on fork support but there's a chance it happens if the file descriptor becomes bad for some other reason.

Closes grpc#37952

COPYBARA_INTEGRATE_REVIEW=grpc#37952 from eugeneo:listener-no-address-crash 1e2e82f
PiperOrigin-RevId: 688238823
@eugeneo eugeneo deleted the listener-no-address-crash branch May 1, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants