{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/196","labels_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/196/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/196/events","html_url":"https://github.com/elastic/elasticsearch-js/issues/196","id":59766954,"number":196,"title":"Elasticsearch - No Living Connections","user":{"login":"nexflo","id":970914,"avatar_url":"https://avatars.githubusercontent.com/u/970914?v=3","gravatar_id":"","url":"https://api.github.com/users/nexflo","html_url":"https://github.com/nexflo","followers_url":"https://api.github.com/users/nexflo/followers","following_url":"https://api.github.com/users/nexflo/following{/other_user}","gists_url":"https://api.github.com/users/nexflo/gists{/gist_id}","starred_url":"https://api.github.com/users/nexflo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexflo/subscriptions","organizations_url":"https://api.github.com/users/nexflo/orgs","repos_url":"https://api.github.com/users/nexflo/repos","events_url":"https://api.github.com/users/nexflo/events{/privacy}","received_events_url":"https://api.github.com/users/nexflo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-04T08:47:52Z","updated_at":"2015-03-12T11:27:05Z","closed_at":null,"body":"This has been mentioned before here and there..but im certain this is still a bug or connections arent pooled correctly?\r\n\r\nIm doing the following: (it indexes 6.000.000 docs...one by one..(dont wanna use bulk imports..so lets ignore this topic for a second)\r\nI'm even waiting for an index to be complete to call the next one...still at around 16.000 entries...i always get the *no more living connections* error.\r\n\r\nI tried with keepalive: true/false etc. but it seems its a connection pooling issue no?\r\n`iprange = array of item`\r\n`esearch = Elasticsearch client.`\r\n\r\n```javascript\r\nfunction doItem(i){\r\n    process.stdout.write(\"Importing item:  \" + i + \"\\r\");\r\n    var doc = {};\r\n    doc.index = \"geoip\";\r\n    doc.type = \"location\";\r\n    doc.body = iprange[i];\r\n    esearch.index(doc, function (err, resp) {\r\n        if(err)\r\n            trace.info(err);\r\n\r\n        i++;\r\n\r\n        if(i < len) {\r\n            doItem(i);\r\n        }\r\n    });\r\n}\r\n\r\ndoItem(1);\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/comments/78463121","html_url":"https://github.com/elastic/elasticsearch-js/issues/196#issuecomment-78463121","issue_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/196","id":78463121,"user":{"login":"nexflo","id":970914,"avatar_url":"https://avatars.githubusercontent.com/u/970914?v=3","gravatar_id":"","url":"https://api.github.com/users/nexflo","html_url":"https://github.com/nexflo","followers_url":"https://api.github.com/users/nexflo/followers","following_url":"https://api.github.com/users/nexflo/following{/other_user}","gists_url":"https://api.github.com/users/nexflo/gists{/gist_id}","starred_url":"https://api.github.com/users/nexflo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexflo/subscriptions","organizations_url":"https://api.github.com/users/nexflo/orgs","repos_url":"https://api.github.com/users/nexflo/repos","events_url":"https://api.github.com/users/nexflo/events{/privacy}","received_events_url":"https://api.github.com/users/nexflo/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T11:27:05Z","updated_at":"2015-03-12T11:27:05Z","body":"@spalger is there anything else I can do to help you resolve/pin down this issue?"}}