-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1
-
%
-
-
When camel-http4 is used in issue GET requests on a remote web server, it will use the same connection indefinitely: no request ever has the Connection: Close header. This is the case even when connectionTimeToLive is set to a small value. The connection will remain open until the server closes it, which may be never.
HTTP/1.1 allows the server to assume that the client will keep the connection open unless it states otherwise. However, the connectionTimeToLive parameter appears to provide a way to indicate when the client should, indeed, state otherwise. However, it has no effect on connection lifetime.
Some HTTP firewalls forcibly close long-running connections, so there needs to be some way to control connection lifetime.