{"action":"reopened","issue":{"url":"https://api.github.com/repos/twitter/finagle/issues/475","repository_url":"https://api.github.com/repos/twitter/finagle","labels_url":"https://api.github.com/repos/twitter/finagle/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/twitter/finagle/issues/475/comments","events_url":"https://api.github.com/repos/twitter/finagle/issues/475/events","html_url":"https://github.com/twitter/finagle/issues/475","id":138945887,"number":475,"title":"Finagle streaming client not closing sockets","user":{"login":"mritman","id":2175175,"avatar_url":"https://avatars.githubusercontent.com/u/2175175?v=3","gravatar_id":"","url":"https://api.github.com/users/mritman","html_url":"https://github.com/mritman","followers_url":"https://api.github.com/users/mritman/followers","following_url":"https://api.github.com/users/mritman/following{/other_user}","gists_url":"https://api.github.com/users/mritman/gists{/gist_id}","starred_url":"https://api.github.com/users/mritman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mritman/subscriptions","organizations_url":"https://api.github.com/users/mritman/orgs","repos_url":"https://api.github.com/users/mritman/repos","events_url":"https://api.github.com/users/mritman/events{/privacy}","received_events_url":"https://api.github.com/users/mritman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-07T10:34:32Z","updated_at":"2016-03-08T12:26:50Z","closed_at":null,"body":"The finagle client does not seem to close connections that are closed by the other side when streaming is enabled. If you run the application from the repository linked to below, you should notice the open number of sockets in the CLOSE_WAIT status held by the process to increase rapidly (Tomcat is configured to close connections after 5 seconds). This ultimately caused our application to hit its open file limit. When setting the max connection size of the connection pool to 1, finagle keeps using the same connection while timing out with each request that it makes. \r\n\r\nWhen streaming is disabled none of the issues occur.\r\n\r\nhttps://github.com/mritman/finagle-not-closing-sockets"}}