christkv/node-mongodb-native — comment on commit 96804001819e9d0bf5f766d4d21f073a41ae96f7
File: lib/mongodb/db.js line 1014
By christkv:

the fix is in master :).

it works :) because the first command that comes into a closed connection will retry and while it's retrying all other commands are buffered up. once the first command is execute it then fires off all the buffered commands. It's a bit difficult to figure out :). But it's battle tested code that took a while to get right due to the peculiarities of async code.