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

Romain Manni-Bucau commented on HTTPCLIENT-2024:
------------------------------------------------

[~olegk] I disagree, I understand you defend the "implement the spec only" side 
of things but fact is HTTP is not about respecting spec but working with most 
servers. Since httpclient is almost the only client to not work when 
Connection:close is missing (actually connection is missing it seems) it should 
be fixed and it is a client bug, not a server bug since http spec allows that. 
Very concretely, it is a client bug to use pooling when it is not enabled to do 
so. Lastly, fixing the server is rarely possible so not an option so very 
minimum httpclient should do is to properly log it (ie not 
_NoHttpResponseException_ but "connection was staled, fix your client 
configuration" - just requires to track the connection was blindly kept in the 
pool) and propose a trivial config on the pooling manager to workaround it (I 
proposed to use ttl=0 which would be the obvious fix if possible to not 
consider 0 as infinite in next minor).

> NoHttpResponseException on high Load
> ------------------------------------
>
>                 Key: HTTPCLIENT-2024
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2024
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.7
>            Reporter: shatk
>            Priority: Major
>              Labels: camel-http4,, http-client
>
>  
> Getting _NoHttpResponseException : host:port failed to respond_  on high 
> Load. 
> This is happening for httpclient-4.5.7  as well as httpclient-4.5.10  version 
> of apache http client on high load [100 TPS]
>  Apache http client is used internally by camel http4. 
> [https://github.com/HydAu/Camel/blob/master/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java]
>  > camel http4 connection config :
> connectionsPerRoute : 100
> maxTotalConnections : 1000 
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to