einaros/ws — pull request #325 by aivopaas (2014-06-05 12:24:44+00:00)
Title: Make sure firstHandler is called only once

dataHandler was set to realHandler, but its previous value of firstHandler was already set as socket data handler so the change had no effect and firstHandler was still used for all data events.

Also making sure that upgradeHead is released no matter it's length or value.