hedgedoc/backend/src
Tilman Vatteroth bb54746ccf fix(backend): prevent realtime connections getting prepared for closed websocket
The setAdapter function checks if the websocket is closed.
If this is the case then an error is thrown and the whole process will be canceled. If the adapter isn't set before the realtime connection object is prepared then the connection will subscribe to all the events and THEN the process will be canceled. Because the MessageTransporter has no adapter (and won't get one), the connection will never get a disconnect event and clean up.

This causes the flood of "cant send message over closed websocket" messages.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-27 15:19:49 +02:00
..
api feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
auth feat: increased test coverage for authService 2023-06-21 14:07:00 +02:00
authors fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
config fix(media config): expect HD_MEDIA_BACKEND_S3_ENDPOINT to be an uri 2023-04-16 18:41:03 +02:00
errors enhancement(auth): better error message handling 2023-03-26 15:43:39 +02:00
frontend-config refactor(default-access-level): rename from default-access-permission 2023-02-12 20:42:10 +01:00
groups fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
history fix: improve and adjust tests 2023-06-20 11:44:38 +02:00
identity feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
logger fix: migrate import code 2023-05-12 19:14:34 +02:00
media feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
monitoring feat(apidocs): use real version number 2023-01-15 18:20:25 +01:00
notes fix: improve and adjust tests 2023-06-20 11:44:38 +02:00
permissions test: add test for permissions guard 2023-05-19 19:10:45 +02:00
realtime fix(backend): prevent realtime connections getting prepared for closed websocket 2023-06-27 15:19:49 +02:00
revisions fix: save created revision on realtime note destroy 2023-06-21 14:17:25 +02:00
session feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
users feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
utils test: improve select query mock builder 2023-06-20 11:44:38 +02:00
app-init.ts misc(apidocs): move URL route of API docs 2023-01-15 18:20:25 +01:00
app.module.ts fix: replace RouterModule from nest-router with @nestjs/core 2023-06-16 23:00:06 +02:00
events.ts feat: add patch to add generic types to eventemitter2 2023-02-09 21:58:41 +01:00
main.ts fix(backend): immediately use our custom logger 2023-06-25 21:49:01 +02:00
seed.ts fix: adjust seeding to new revision create signature 2023-06-20 11:44:38 +02:00