Skip to content

Catch exceptions thrown by message handlers - #181

Open
BlueVolt1 wants to merge 1 commit into
RiptideNetworking:mainfrom
BlueVolt1:catch-message-handler-exceptions
Open

BlueVolt1 wants to merge 1 commit into
RiptideNetworking:mainfrom
BlueVolt1:catch-message-handler-exceptions

Conversation

@BlueVolt1

Copy link
Copy Markdown

An exception thrown by a message handler unwinds into whatever calls Update, so one malformed or unlucky message takes down the peer handling it.

Server.OnMessageReceived and Client.OnMessageReceived now log the exception and carry on, the same way exceptions thrown by event subscribers are already handled.

An exception thrown by a message handler unwinds into whatever calls
Update, so a single malformed or unlucky message takes down the peer
handling it. Log it and carry on, matching how exceptions thrown by
event subscribers are already handled.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants