You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2008/06/26 19:35:45 UTC

[jira] Commented: (HTTPCLIENT-781) Respect Keep-Alive Header

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608514#action_12608514 ] 

Oleg Kalnichevski commented on HTTPCLIENT-781:
----------------------------------------------

Sam,

I made some changes to the DefaultConnectionKeepAliveStrategy class and added more test cases. Please review. I also think it would be better if getKeepAliveDuration returned both TimeUnit and long in one go. Something like

class KeepAliveInfo {
 
  long getTime();
  TimeUnit getUnit();

}

Or we dropped TimeUnit altogether.

Oleg

> Respect Keep-Alive Header
> -------------------------
>
>                 Key: HTTPCLIENT-781
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-781
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.0 Alpha 4
>            Reporter: Sam Berlin
>             Fix For: 4.0 Beta 1
>
>
> HttpClient currently does not respect the 'Keep-Alive' header tokens (timeout, max, etc..) and continues to use the persistent connection beyond limits the server requests.  This leads to failure and falling back to HttpRequestRetryHandler, when it should instead just use a new connection explicitly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org