LearnBoost/engine.io — pull request #12 by kapouer (2012-02-22 14:15:50+00:00)
Title: Socket.ping() should be idempotent, if not race conditions can appear and connection closes.

I have the following transports allowed :
polling, websocket

You have several code paths that call Socket.ping(), and if called twice in a row
one timeout is left dangling, closing connection while pongs are still being properly received.

This commit ensures idempotency !