-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
OkHttpClientProvider for Android 4 does not support TLSv1 #14244
Comments
This comment has been minimized.
This comment has been minimized.
Summary: This problem tries to solve issue #14244 Implemented a fetch request to a TLSv1 server. It now successfully resolves TLS handshake. Tested same fetch to TLSv1.2 server and still successfully resolves TLS handshake. Closes #14245 Differential Revision: D5898689 Pulled By: shergin fbshipit-source-id: 8766ebe6909443367651ab868aa5ff62747cd906
Reoccured on React Native |
any news on this one? we can't use cloudflare CDN because of this bug. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
I think this should kept open |
Some solution, the same thing happens to me, since 0.56.0 it stopped working |
we fixed the issue in the master, and will be included in future releases. 75af15e |
please see #23984 for workarounds |
Description
Correctly functioning behaviour.
In Android v5 and upwards when using the standard OkHttpClientProvider it uses OkHttpClient.Builder() to determine the connectionSpecs. This returns a default
Inconsistent behaviour
For Android SDK
Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN && Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT
it goes into a customenableTls12OnPreLollipop
codeblock that specifically only implementsConnectionSpec.MODERN_TLS
This results that connections using TLSv1 will not work on Android 4.
Reproduction Steps and Sample Code
Solution
Will Add pull request.
Added #14245
in com.facebook.react.modules.network.TLSSocketFactory replace
with
Additional Information
The text was updated successfully, but these errors were encountered: