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