mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
PadMessageHandler.js: cope better with session disconnects
This commit is contained in:
parent
b1c5024bcf
commit
07ae44ddf4
1 changed files with 6 additions and 0 deletions
|
@ -268,6 +268,12 @@ exports.handleMessage = async function(client, message)
|
||||||
// FIXME: Use a hook instead
|
// FIXME: Use a hook instead
|
||||||
// FIXME: Allow to override readwrite access with readonly
|
// FIXME: Allow to override readwrite access with readonly
|
||||||
|
|
||||||
|
// the session may have been dropped during earlier processing
|
||||||
|
if (!sessioninfos[client.id]) {
|
||||||
|
messageLogger.warn("Dropping message from a connection that has gone away.")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Simulate using the load testing tool
|
// Simulate using the load testing tool
|
||||||
if (!sessioninfos[client.id].auth) {
|
if (!sessioninfos[client.id].auth) {
|
||||||
console.error("Auth was never applied to a session. If you are using the stress-test tool then restart Etherpad and the Stress test tool.")
|
console.error("Auth was never applied to a session. If you are using the stress-test tool then restart Etherpad and the Stress test tool.")
|
||||||
|
|
Loading…
Reference in a new issue