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

Media uploading first fix #371

Merged
merged 3 commits into from Mar 17, 2017
Merged

Media uploading first fix #371

merged 3 commits into from Mar 17, 2017

Conversation

daniloercoli
Copy link
Contributor

Fix #370 by setting the read_timeout to 60secs.

Not sure how you can reproduce the issue, but you could try by uploading big pictures or videos to your dotcom blog. All the details in the ticket.

@@ -70,7 +70,7 @@ public MediaRestClient(Context appContext, Dispatcher dispatcher, RequestQueue r
super(appContext, dispatcher, requestQueue, accessToken, userAgent);
mOkHttpClient = okClientBuilder
.connectTimeout(BaseRequest.DEFAULT_REQUEST_TIMEOUT, TimeUnit.MILLISECONDS)
.readTimeout(BaseRequest.DEFAULT_REQUEST_TIMEOUT, TimeUnit.MILLISECONDS)
.readTimeout(BaseRequest.DEFAULT_REQUEST_READ_TIMEOUT, TimeUnit.MILLISECONDS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this DEFAULT_REQUEST_READ_TIMEOUT to UPLOAD_REQUEST_READ_TIMEOUT, and also reuse it in MediaXMLRPCClient?

@daniloercoli
Copy link
Contributor Author

Renamed and used in both the REST and XML-RPC clients.

@maxme
Copy link
Contributor

maxme commented Mar 17, 2017

:shipit:

@maxme maxme merged commit 7f4e5df into develop Mar 17, 2017
@maxme maxme deleted the issue/370-timeout-uploading-media branch March 17, 2017 16:18
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.

None yet

2 participants