[ 
https://issues.apache.org/jira/browse/HADOOP-15447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jelmer Kuperus updated HADOOP-15447:
------------------------------------
    Issue Type: Bug  (was: Improvement)

> SwiftRestClient does not propertly close connections
> ----------------------------------------------------
>
>                 Key: HADOOP-15447
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15447
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/swift
>    Affects Versions: 2.9.0, 2.6.5, 2.7.4, 3.0.2
>            Reporter: Jelmer Kuperus
>            Priority: Major
>
> On production the output of netstat -a showed a large number of connections 
> to swift hosts in the  CLOSE_WAIT and ESTABLISHED state
> The reason is that while the SwiftRestClient calls releaseConnection, because 
> HTTP 1.1 is used, the connection is not closed by the http client. Because it 
> could  pipeline further requests to the same host:port in the same connection.
> One way to remedy this is to add a "Connection: close" header
> This article further explains the issue : 
> https://doc.nuxeo.com/blog/using-httpclient-properly-avoid-closewait-tcp-connections/
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to