Issue 12063

Change the HttpUtils to always use a timeout and other sane settings for new HttpClients

12063
Reporter: lfrancke
Assignee: lfrancke
Type: Improvement
Summary: Change the HttpUtils to always use a timeout and other sane settings for new HttpClients
Description: Currently we rely on the default timeouts which don't time out at all. We do have a method executeGetWithTimeout but it's a member function of HttpUtils and requires users to remember to use it.
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-10-23 11:39:56.047
Updated: 2013-12-06 12:06:38.096
Resolved: 2012-10-30 22:34:45.994


Author: lfrancke@gbif.org
Comment: Also need to make sure to look for the Java internal timeouts....in their Http client. I have the documentation somewhere.
Created: 2012-10-24 17:30:31.842
Updated: 2012-10-24 17:30:31.842


Author: lfrancke@gbif.org
Created: 2012-10-30 22:34:30.234
Updated: 2012-10-30 22:34:30.234
        
I've changed it to use very generous timeouts of 10 minutes.

I've also made the methods deprecated to be removed in the next version. They are so easy to misuse and everyone using them really needs to know exactly how they are setting up the HTTP client