-
Notifications
You must be signed in to change notification settings - Fork 48
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
Update OkHttp version to 3.10.0 #72
Conversation
…workaround stuck mockwebserver tests after bumping okhttp version to 3.10.0
import okhttp3.HttpUrl; | ||
import okhttp3.internal.tls.SslClient; | ||
import okhttp3.mockwebserver.internal.tls.SslClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we continue to use an internal api if future changes could cause issues similar issues? Is there any way we can get rid of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a bit different because MockWebServer is only used for testing. So although APIs could change it's not a problem because it's not affecting production code which is what we're exposing and what could cause issues in the future. Does that make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way we can get rid of this?
Nope, it's actually needed for testing HTTP requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Sounds good.
import okhttp3.Call; | ||
import okhttp3.Callback; | ||
import okhttp3.HttpUrl; | ||
import okhttp3.OkHttpClient; | ||
import okhttp3.Response; | ||
import okhttp3.internal.tls.SslClient; | ||
import okhttp3.mockwebserver.internal.tls.SslClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as ☝️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already answered ☝️
* bump okhttp version to 3.10.0 * add hostname verifier to telemetry client settings builder needed to workaround stuck mockwebserver tests after bumping okhttp version to 3.10.0
3.10.0
hostnameVerifier
toTelemetryClientSettings
builder needed to workaround stuck MockWebServer tests after bumping OkHttp version to3.10.0
. For further details 👉 MockWebServer tests got stuck after updating from 3.9.1 to 3.10.0 square/okhttp#3898cc @electrostat @zugaldia @tobrun @LukasPaczos