Jelmer Kuperus created HADOOP-15447:
---------------------------------------

             Summary: SwiftRestClient does not propertly close connections
                 Key: HADOOP-15447
                 URL: https://issues.apache.org/jira/browse/HADOOP-15447
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs/swift
    Affects Versions: 3.0.2, 2.7.4, 2.6.5, 2.9.0
            Reporter: Jelmer Kuperus


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: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to