{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/4482","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/4482/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/4482/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/4482/events","html_url":"https://github.com/nodejs/node/pull/4482","id":124348143,"number":4482,"title":"Http(s) Agent: handle errors on idle sockets","user":{"login":"jfromaniello","id":178512,"avatar_url":"https://avatars.githubusercontent.com/u/178512?v=3","gravatar_id":"","url":"https://api.github.com/users/jfromaniello","html_url":"https://github.com/jfromaniello","followers_url":"https://api.github.com/users/jfromaniello/followers","following_url":"https://api.github.com/users/jfromaniello/following{/other_user}","gists_url":"https://api.github.com/users/jfromaniello/gists{/gist_id}","starred_url":"https://api.github.com/users/jfromaniello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfromaniello/subscriptions","organizations_url":"https://api.github.com/users/jfromaniello/orgs","repos_url":"https://api.github.com/users/jfromaniello/repos","events_url":"https://api.github.com/users/jfromaniello/events{/privacy}","received_events_url":"https://api.github.com/users/jfromaniello/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/http","name":"http","color":"c7def8"},{"url":"https://api.github.com/repos/nodejs/node/labels/land-on-v4.x","name":"land-on-v4.x","color":"d4c5f9"},{"url":"https://api.github.com/repos/nodejs/node/labels/semver-minor","name":"semver-minor","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-12-30T13:30:25Z","updated_at":"2016-03-09T23:07:34Z","closed_at":"2016-01-04T18:36:32Z","pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/4482","html_url":"https://github.com/nodejs/node/pull/4482","diff_url":"https://github.com/nodejs/node/pull/4482.diff","patch_url":"https://github.com/nodejs/node/pull/4482.patch"},"body":"This is my proposed fix for #3595.\r\n\r\nThis change adds a new error handler on every socket when the socket is *idle*.\r\n\r\nIf there is an error on the tcp connection, eg: the server abruptly close the connection while the socket is idle then we destroy the socket and remove it from the pool of free sockets."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/194558317","html_url":"https://github.com/nodejs/node/pull/4482#issuecomment-194558317","issue_url":"https://api.github.com/repos/nodejs/node/issues/4482","id":194558317,"user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T23:07:34Z","updated_at":"2016-03-09T23:07:34Z","body":"For what its worth, it seems to happen in the same situation as https://github.com/nodejs/node/issues/3595 where load is applied and then removed. "}}