{"issue":{"created_at":"2011-11-25T12:30:30Z","state":"open","updated_at":"2011-11-26T09:41:35Z","user":{"gravatar_id":"ad418e3e53e0ba71ba56b7df978671e8","id":33538,"url":"https://api.github.com/users/novemberborn","login":"novemberborn","avatar_url":"https://secure.gravatar.com/avatar/ad418e3e53e0ba71ba56b7df978671e8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":6,"body":"If I try to connect to a ReplSet the CPU of node proc will spike to 100% within half a minute. \r\n\r\nTest script:\r\n\r\n```js\r\n\r\nvar mongodb = require(\"mongodb\");\r\n\r\nvar options = {};\r\n\r\nvar replSet = new mongodb.ReplSetServers([\r\n  new mongodb.Server(\"mongo-1\", 27017, options),\r\n  new mongodb.Server(\"mongo-2\", 27017, options),\r\n  new mongodb.Server(\"mongo-3\", 27017, options)\r\n]);\r\nvar db = new mongodb.Db(\"database\", replSet);\r\ndb.open(function(err, client){\r\n  // Not even doing anything here\r\n});\r\n```\r\n","assignee":null,"labels":[],"id":2348911,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":416,"title":"Using ReplSet causes 100% CPU usage with v0.9.7.1","closed_at":null,"html_url":"https://github.com/christkv/node-mongodb-native/issues/416","milestone":null,"url":"https://api.github.com/repos/christkv/node-mongodb-native/issues/416"},"action":"created","comment":{"created_at":"2011-11-26T09:41:35Z","updated_at":"2011-11-26T09:41:35Z","user":{"gravatar_id":"a132807512f576d8b2394a7a8b0379a0","id":5569,"url":"https://api.github.com/users/christkv","login":"christkv","avatar_url":"https://secure.gravatar.com/avatar/a132807512f576d8b2394a7a8b0379a0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Just verified\r\n\r\n0.4.12 works as expected (just tested it, no hang no 100% cpu). The change log for 0.4.12 was this one\r\n\r\n\r\n* Improve docs\r\n* #1563 overflow in ChildProcess custom_fd.\r\n* #1569, parse error on multi-line HTTP headers. (Ben Noordhuis)\r\n* #1586 net: Socket write encoding case sensitivity (koichik)\r\n* #1610 Remove DigiNotar CA from trusted list (isaacs)\r\n* #1624 buffer: Avoid overrun with 'binary' encoding. (koichik)\r\n* #1633 buffer: write() should always set _charsWritten. (koichik)\r\n* #1707 hasOwnProperty usage security hole in querystring (isaacs)\r\n* #1719 Drain OpenSSL error queue\r\n* Fix error reporting in net.Server.listen\r\n\r\nLooks like some fixes were done to the socket code, might have been one of these that fixed the issue.\r\n\r\n\r\nOn Nov 26, 2011, at 1:36 AM, Mark Wubben wrote:\r\n\r\n> Admittedly the latest 0.4 release is 0.4.12, but I'm not sure I can deploy that version to our servers to verify.\r\n> \r\n> --- \r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/christkv/node-mongodb-native/issues/416#issuecomment-2879218","id":2880776,"url":"https://api.github.com/repos/christkv/node-mongodb-native/issues/comments/2880776"}}