Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
4.5
-
None
-
None
Description
The OSGI HTTP client currently comes with default connection and socket timeouts.
The default timeouts are infinite values. Those infinite timeouts imply that a failing connection may hang forever wasting the associated resources and potentially causing the process to stop with hardly reproducible issues.
There already is a way to configure the timeouts per client instance. This approach provides a great flexibility but it comes at the cost of I. tedious and error prone configurations, II. not solving the issue once for all (new components may forget to add support for timeouts).
Allowing to configure the default globally or via the factory configuration (with defaults) would give a simpler configuration overall and inherit the configurable default to all consumers of the client.
This improvement shall only applies to the OSGI client.