Skip to content

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?

@ericgribkoff ericgribkoff requested a review from ejona86 November 22, 2017 20:21
@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