Hi all,

On http://hc.apache.org/httpcomponents-client/tutorial/html/ch02.html the section titled "Connection keep alive strategy" talks about when to implement a custom keep-alive strategy.

But I thought that if a connection gets dropped by the server due to inactivity, the next request made using that stale connection will trigger an IOException, which HttpClient will automatically handle by re-trying with a new connection.

So is the issue that retrying winds up being less efficient, versus auto-closing connections? Or is my understanding of what HttpClient 4 will do with a stale connection too optimistic?

Thanks,

-- Ken


--------------------------
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-210-6378


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to