{"action":"created","issue":{"url":"https://api.github.com/repos/node-modules/agentkeepalive/issues/13","labels_url":"https://api.github.com/repos/node-modules/agentkeepalive/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/node-modules/agentkeepalive/issues/13/comments","events_url":"https://api.github.com/repos/node-modules/agentkeepalive/issues/13/events","html_url":"https://github.com/node-modules/agentkeepalive/issues/13","id":55932094,"number":13,"title":"Timeout issue","user":{"login":"cthackers","id":210514,"avatar_url":"https://avatars.githubusercontent.com/u/210514?v=3","gravatar_id":"","url":"https://api.github.com/users/cthackers","html_url":"https://github.com/cthackers","followers_url":"https://api.github.com/users/cthackers/followers","following_url":"https://api.github.com/users/cthackers/following{/other_user}","gists_url":"https://api.github.com/users/cthackers/gists{/gist_id}","starred_url":"https://api.github.com/users/cthackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthackers/subscriptions","organizations_url":"https://api.github.com/users/cthackers/orgs","repos_url":"https://api.github.com/users/cthackers/repos","events_url":"https://api.github.com/users/cthackers/events{/privacy}","received_events_url":"https://api.github.com/users/cthackers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-29T17:43:36Z","updated_at":"2015-02-03T14:10:49Z","closed_at":null,"body":"Hi,\r\nI have some issues with this library and the number of connections it creates. I don't know exactly if the library is the problem or my configs but I was doing a simple test with \r\n\r\n    {\r\n        maxSockets: 5,\r\n        maxFreeSockets: 5, \r\n        keepAliveMsecs: 100\r\n        .....\r\n    } \r\n\r\nthen do 100 requests with some small random time intervals between them. The result i get is something like this and doesn't seem to add up\r\n\r\n    {\r\n        .....\r\n        keepAliveMsecs: 100,\r\n        keepAlive: true,\r\n        maxSockets: 5,\r\n        maxFreeSockets: 5,\r\n        maxKeepAliveRequests: 0,\r\n        createSocketCount: 18,\r\n        timeoutSocketCount: 4,\r\n        requestFinishedCount: 100 \r\n    }\r\n\r\nIf only 4 sockets timed out why did it create 18 ? Shouldn't have been 9 there ? The initial 5 sockets and the additional 4 that were replaced because they timed out. Btw, the numbers vary on every run. What am I missing here ?"},"comment":{"url":"https://api.github.com/repos/node-modules/agentkeepalive/issues/comments/72656083","html_url":"https://github.com/node-modules/agentkeepalive/issues/13#issuecomment-72656083","issue_url":"https://api.github.com/repos/node-modules/agentkeepalive/issues/13","id":72656083,"user":{"login":"cthackers","id":210514,"avatar_url":"https://avatars.githubusercontent.com/u/210514?v=3","gravatar_id":"","url":"https://api.github.com/users/cthackers","html_url":"https://github.com/cthackers","followers_url":"https://api.github.com/users/cthackers/followers","following_url":"https://api.github.com/users/cthackers/following{/other_user}","gists_url":"https://api.github.com/users/cthackers/gists{/gist_id}","starred_url":"https://api.github.com/users/cthackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthackers/subscriptions","organizations_url":"https://api.github.com/users/cthackers/orgs","repos_url":"https://api.github.com/users/cthackers/repos","events_url":"https://api.github.com/users/cthackers/events{/privacy}","received_events_url":"https://api.github.com/users/cthackers/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T14:10:49Z","updated_at":"2015-02-03T14:10:49Z","body":"and for HTTPS connections, it uses the certificate files as keys in the getName function. The application i use this in, has one 50KB certificate file with all the certificates. The log increased to 1.5 GB  in less than a minute. Why in the world you would use the content of the certificates and keys as the key to the map ?"}}