-
-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
rpc-websockets/src/lib/server.js
Line 417 in 2f0f59e
return socket.send(CircularJSON.stringify(response), msg_options) |
In case if client socket closes the connection - 'send' will cause an unhandled rejection, which in some production environments might lead to application crash!
Mentioned problem is relevant to any other socket.send call.
Steps to reproduce:
- Call some long running rpc task
- Close client connection
- After task has finished - unhandledRejection will be triggered
Metadata
Metadata
Assignees
Labels
No labels