This repository was archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 448
Exceptions from user HttpConnection event handlers should be caught and logged #818
Comments
moozzyk
added a commit
that referenced
this issue
Sep 5, 2017
Otherwise they can spoil event queue and make the client not raise the Received event anymore Fixes: #818
moozzyk
added a commit
that referenced
this issue
Sep 5, 2017
Otherwise they can spoil event queue and make the client not raise the Received event anymore Fixes: #818
@muratg @davidfowl - I think we should do this in alpha. Just sent a PR for this. |
Sounds reasonable to me. |
moozzyk
pushed a commit
that referenced
this issue
Oct 25, 2017
Storing exception thrown during parameter binding and rethrowing when the method is about to throw. This allows completing invocations with a HubException and keeping the connection open. We will also no longer close the connection if parameters for client side methods cannot be bound. We will log and continue. Fixes: #818 (Also fixing #1005 because I was just touching this line)
moozzyk
pushed a commit
that referenced
this issue
Oct 25, 2017
Storing exception thrown during parameter binding and rethrowing when the method is about to throw. This allows completing invocations with a HubException and keeping the connection open. We will also no longer close the connection if parameters for client side methods cannot be bound. We will log and continue. Fixes: #818 (Also fixing #1005 because I was just touching this line)
moozzyk
added a commit
that referenced
this issue
Oct 30, 2017
Late parameter binding Storing exception thrown during parameter binding and rethrowing when the method is about to throw. This allows completing invocations with a HubException and keeping the connection open. We will also no longer close the connection if parameters for client side methods cannot be bound. We will log and continue. Fixes: #818 (Also fixing #1005 because I was just touching this line)
Fixed in 18f770e |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Currently exceptions thrown from user's code handling Connected/Received/Closed events are not handled. For the Connected and Closed events they are ignored. For the Received event they are returned as the result of the queued task in the task queue and make it impossible to enqueue another task. This results in not raising the Received event anymore for new data received by the client.
We should catch exceptions from user's event handlers and log. They should not affect the client.
Related #816
The text was updated successfully, but these errors were encountered: