Skip to content
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

core,okhttp: handle unresolved proxy addresses #3789

Merged
merged 1 commit into from
Nov 23, 2017

Conversation

ericgribkoff
Copy link
Contributor

@ericgribkoff ericgribkoff commented Nov 22, 2017

This fixes a NullPointerException in OkHttpClientTransport when the proxy returns an unresolved address, in which case InetSocketAddress#getAddress will return null. This also changes the GRPC_PROXY_EXP handling to explicitly return an unresolved InetSocketAddress to avoid I/O at channel creation. Our other uses of the InetSocketAddress(String, int) constructor are all in tests or interop/benchmark clients, and as far as I can tell not problematic.

@ejona86 Should this fix (modified to the pre-ProxySelector code) be backported? If so, to which releases?

@ejona86
Copy link
Member

ejona86 commented Nov 22, 2017

Yeah, let's backport to 1.7 and 1.8

@ericgribkoff ericgribkoff merged commit 4d35ea0 into grpc:master Nov 23, 2017
@ericgribkoff ericgribkoff deleted the unresolved_proxy branch November 23, 2017 19:00
@carl-mastrangelo carl-mastrangelo added this to the 1.9 milestone Nov 30, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants