{"action":"created","issue":{"url":"https://api.github.com/repos/request/request/issues/1778","labels_url":"https://api.github.com/repos/request/request/issues/1778/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/1778/comments","events_url":"https://api.github.com/repos/request/request/issues/1778/events","html_url":"https://github.com/request/request/issues/1778","id":107396499,"number":1778,"title":"ETIMEDOUT occured periodically.","user":{"login":"uzysjung","id":1260081,"avatar_url":"https://avatars.githubusercontent.com/u/1260081?v=3","gravatar_id":"","url":"https://api.github.com/users/uzysjung","html_url":"https://github.com/uzysjung","followers_url":"https://api.github.com/users/uzysjung/followers","following_url":"https://api.github.com/users/uzysjung/following{/other_user}","gists_url":"https://api.github.com/users/uzysjung/gists{/gist_id}","starred_url":"https://api.github.com/users/uzysjung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzysjung/subscriptions","organizations_url":"https://api.github.com/users/uzysjung/orgs","repos_url":"https://api.github.com/users/uzysjung/repos","events_url":"https://api.github.com/users/uzysjung/events{/privacy}","received_events_url":"https://api.github.com/users/uzysjung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-20T14:56:41Z","updated_at":"2015-09-27T02:59:27Z","closed_at":null,"body":"Hi, I found some issue which request lib didn't disconnect well \r\nIt causes ETIMEDOUT periodically \r\n-- request version ^2.62.0 node version 0.12.7\r\n\r\n```\r\nError: ETIMEDOUT\r\n    at null.<anonymous> (/var/app/current/node_modules/request/request.js:818:15)\r\n    at wrappedCallback (/var/app/current/node_modules/newrelic/lib/transaction/tracer/index.js:347:23)\r\n    at wrapped (/var/app/current/node_modules/newrelic/lib/transaction/tracer/index.js:157:28)\r\n    at wrappedCallback (/var/app/current/node_modules/newrelic/lib/transaction/tracer/index.js:438:66)\r\n    at wrapped [as _onTimeout] (/var/app/current/node_modules/newrelic/lib/transaction/tracer/index.js:157:28)\r\n    at Timer.listOnTimeout (timers.js:119:15)\r\n150916/172259.405, [request,error:], data: ETIMEDOUT\r\n```\r\n\r\nIt works fine only during 30min ~ 60min. \r\nbut certain amount of time is reached, all request are ETIMEDOUT during 0.1~0.2sec\r\nand then It works fine only during 30~60min. and over and over\r\n\r\nafter I replace request library to node.js http.request  it works fine. there's no ETIMEDOUT.\r\n\r\nwhen I used forever options:true , certain amount of time is longer than I didn't.\r\n\r\n-------------------------------------------------\r\nI have relay servers.\r\n\r\nclient --- relay server(using request library) --- A server\r\n\r\nthis is relay server code below. \r\n```javascript\r\nfunction (request,reply) {\r\n\r\n    var options = {\r\n        url: \"A server URL\",\r\n        qs: request.query, \r\n        timeout: config.request.timeout,\r\n    };\r\n    request(options, function (error, response, body) {\r\n        if (error) {\r\n            reply(error);\r\n            return;\r\n        } else if (200 != response.statusCode) {\r\n            reply(new Error('can not get user-reco - statusCode' +response.statusCode));\r\n            return;\r\n        }\r\n        var result = JSON.parse(body);\r\n        reply(result);\r\n    });\r\n}\r\n```\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/request/request/issues/comments/143514498","html_url":"https://github.com/request/request/issues/1778#issuecomment-143514498","issue_url":"https://api.github.com/repos/request/request/issues/1778","id":143514498,"user":{"login":"uzysjung","id":1260081,"avatar_url":"https://avatars.githubusercontent.com/u/1260081?v=3","gravatar_id":"","url":"https://api.github.com/users/uzysjung","html_url":"https://github.com/uzysjung","followers_url":"https://api.github.com/users/uzysjung/followers","following_url":"https://api.github.com/users/uzysjung/following{/other_user}","gists_url":"https://api.github.com/users/uzysjung/gists{/gist_id}","starred_url":"https://api.github.com/users/uzysjung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzysjung/subscriptions","organizations_url":"https://api.github.com/users/uzysjung/orgs","repos_url":"https://api.github.com/users/uzysjung/repos","events_url":"https://api.github.com/users/uzysjung/events{/privacy}","received_events_url":"https://api.github.com/users/uzysjung/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T02:59:27Z","updated_at":"2015-09-27T02:59:27Z","body":"I used 3s  , 5s , 10s , default value\r\nthis issue occurred all environments."}}