Task #6844
Bug #6789: Read API calls to the CN are hanging
add default timeout settings into libclient
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
History
#1 Updated by Andrei Buium almost 10 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.