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

Upstream commit of Android SNI / NPN fix #1137

Merged
merged 1 commit into from
Nov 16, 2014

Conversation

nfuller
Copy link
Collaborator

@nfuller nfuller commented Nov 8, 2014

https://android-review.googlesource.com/#/c/111211

The change's to Android's Platform have been ported.

This does not include the introduction of PlatformTest,
which will be difficult to write so it works everywhere.

https://android-review.googlesource.com/#/c/111211

The change's to Android's Platform have been ported.

This does not include the introduction of PlatformTest,
which will be difficult to write so it works everywhere.
@nfuller
Copy link
Collaborator Author

nfuller commented Nov 8, 2014

This is a bit scrappy. I've dropped PlatformTest, which I added in Android. It's hard to write a good test there because it will behave differently on every platform (assuming this is why there is no PlatformTest to start with).

The changes to Platform.java should be looked at especially closely because these are new here and only roughly based on the Android version. I ran the tests on an ART host with vogar and received many failures (mostly to do with cache tests attempting to set the java.io.tmp). When I compared against a version without my changes it turns out the run with my change received one less failure (something to do with certificate pinning). Something to look at when I upgrade Android to 2.1 - I'd like us to get to green there.

When I ran mvn verify and run tests against an OpenJDK host it either hangs or I get several failures (e.g. ones related to thread interruption). Probably related to the version of OpenJDK we use.

swankjesse added a commit that referenced this pull request Nov 16, 2014
Upstream commit of Android SNI / NPN fix
@swankjesse swankjesse merged commit 694c405 into square:master Nov 16, 2014
@swankjesse
Copy link
Collaborator

Thanks! And sorry for the awful turnaround on the review this time.

ejona86 added a commit to grpc/grpc-java that referenced this pull request Dec 15, 2014
square/okhttp#1137

-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82149209
ejona86 added a commit to grpc/grpc-java that referenced this pull request Jan 9, 2015
square/okhttp#1137
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82149209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants