-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QUIC: We should never catch an exception in event callbacks #55302
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsCurrently, we have a try/catch around all our msquic callbacks. If we catch an exception, we log it and return MsQuicStatusCodes.InternalError. We should also assert here and fix any cases in which the assert fires. There should never be a valid reason for an exception to occur here, and if it does, it's quite likely that we are in a bad state.
|
One case I look at recently is for example certificate validation. That can also run user code. The current code makes validation errors hard to diagnose.
That would allow us to propagate errors to the user. |
We shouldn't be running user code on the callback thread. Edit to add: Though I'm not sure we have an alternative here; can you point me to where this happens? |
Currently, we have a try/catch around all our msquic callbacks. If we catch an exception, we log it and return MsQuicStatusCodes.InternalError.
We should also assert here and fix any cases in which the assert fires. There should never be a valid reason for an exception to occur here, and if it does, it's quite likely that we are in a bad state.
The text was updated successfully, but these errors were encountered: