Project

General

Profile

Task #6844

Bug #6789: Read API calls to the CN are hanging

add default timeout settings into libclient

Added by Rob Nahf about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Buium
Category:
d1_libclient_java
Target version:
Start date:
2015-02-09
Due date:
% Done:

100%

Story Points:
Sprint:

Description

Add default timeout setting to the HttpMultipartRestClient class in libclient_java.

It would be good to be able to turn default timeouts off via configuration settings.

Associated revisions

Revision 15194
Added by Andrei Buium about 9 years ago

Made the default timeout disable-able.
refs #6789, #6844

Revision 15194
Added by Andrei Buium about 9 years ago

Made the default timeout disable-able.
refs #6789, #6844

History

#1 Updated by Andrei Buium about 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • translation missing: en.field_remaining_hours set to 0

Committed a fix for this issue client-side. Just having a timeout value set causes most methods to return quickly. We're now setting a default timeout property to out Settings configuration when creating the rest client. When getting ready to make a call (when creating a RequestConfig), we check if there's no timeout set and use the default if that's the case.

There are also methods on the HttpMultipartRestClient for setting and clearing the default timeout value. The latter is for testing purposes.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)