LearnBoost/socket.io — Issue #677: socket.io is crash-happy
Author: charliesome
Created: 2011-12-04 12:00:55+00:00
State: open

I wrote a simple little cars game using node.js and socket.io.

The backend code is trivial (just message routing/broadcasting stuff) so I doubt it's an issue with my code.

Anyhow, I posted the game to /v/ and a bunch of players came on. My node server crashed with:

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

I restarted it and it ran for a while before crashing again with the same error.

I eventually had to take the game down as it was just way too unstable under load.