marcello3d/node-mongolian — Issue #72: Buffer is not large enough
Author: Airs0urce
Created: 2012-01-06 19:40:28+00:00
State: open

I have collection with just 151 elements (http://dl.dropbox.com/u/1875424/players_collection.txt).
There is a problem with big amount of find command executions.

For example I run this code on collection I sent above:

setInterval(function() {
db.collection('players').find({user_id: "1167876047"}).toArray(function(err, players) {});
}, 10);

As result I have this exception after couple seconds:

Error: Buffer is not large enough. Expected 8978944, have 71064
at new Response (/usr/local/lib/node_modules/mongolian/node_modules/buffalo/lib/mongo.js:255:15)
at Connection. (/usr/local/lib/node_modules/mongolian/lib/server.js:227:28)
at Connection.emit (events.js:67:17)
at Socket. (/usr/local/lib/node_modules/mongolian/lib/connection.js:61:22)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:341:14)