Skip to content
Browse files

Fixed HTTP connection timeout on Android (#22164)

Fixes #11666 (Which was incorrectly closed)
Pull Request resolved: #22164

Differential Revision: D13057001

Pulled By: hramos

fbshipit-source-id: bcd53e893bc7c114f866e54938166b74b8ae0299
  • Loading branch information...
Eric Butler authored and kelset committed Nov 14, 2018
1 parent de3711e commit 695784a6ca5855fc2ede3e97bc5a230261347e44
@@ -323,7 +323,7 @@ public void onProgress(long bytesWritten, long contentLength, boolean done) {
// shared under the hood.
// See for more information
if (timeout != mClient.connectTimeoutMillis()) {
clientBuilder.readTimeout(timeout, TimeUnit.MILLISECONDS);
clientBuilder.connectTimeout(timeout, TimeUnit.MILLISECONDS);
OkHttpClient client =;

0 comments on commit 695784a

Please sign in to comment.
You can’t perform that action at this time.