etherpad-lite/src/node/handler
Richard Braakman e16008b371 Fix sessioninfos race that can cause crash during USER_CHANGES handling
When stress testing etherpad-lite we occasionally got this error:

TypeError: Cannot read property 'author' of undefined
    at /home/etherpad/etherpad-lite/src/node/handler/PadMessageHandler.js:556:47

handleUserChanges was accessing sessioninfos[client.id].author in a callback,
after spending some time in the loop that updates the changeset to the
latest revision. It's possible for a disconnect request to be processed
during that loop so the session might no longer be there.

This patch fixes it by looking up the author at the start of the function.
2012-09-26 03:01:59 +03:00
..
APIHandler.js Add listAllGroups API endpoint 2012-09-17 23:03:56 +02:00
ExportHandler.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
ImportHandler.js You can't use $ if no jQuery is available.. Apologies for so much spam on this issue, this finally resolves #594 2012-05-23 01:01:50 +02:00
PadMessageHandler.js Fix sessioninfos race that can cause crash during USER_CHANGES handling 2012-09-26 03:01:59 +03:00
SocketIORouter.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00