Skip to content
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

Fix hang on deserialization exception #388

Merged
merged 2 commits into from
Dec 2, 2019

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Nov 28, 2019

Fix handling of exceptions thrown from result deserializers

I do this in two ways:

  1. If any formatter throws an exception at this fragile point, kill the connection (as we were already doing) but also complete the one Task that we were abandoning before.
  2. Fix the MessagePackFormatter to save its exception for a better time so the connection doesn't have to die.

I do this in two ways:
1. If any formatter throws an exception at this fragile point, kill the connection (as we were already doing) but also complete the one Task that we were abandoning before.
1. Fix the MessagePackFormatter to save its exception for a better time so the connection doesn't have to die.
@AArnott AArnott added this to the v2.3 milestone Nov 28, 2019
@AArnott AArnott requested a review from jepetty November 28, 2019 07:53
@AArnott AArnott self-assigned this Nov 28, 2019
@codecov-io
Copy link

codecov-io commented Nov 28, 2019

Codecov Report

Merging #388 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #388      +/-   ##
=========================================
+ Coverage   90.49%   90.5%   +0.01%     
=========================================
  Files          46      46              
  Lines        3451    3456       +5     
=========================================
+ Hits         3123    3128       +5     
  Misses        328     328
Impacted Files Coverage Δ
src/StreamJsonRpc/JsonRpc.cs 93.09% <100%> (+0.13%) ⬆️
src/StreamJsonRpc/MessagePackFormatter.cs 92.47% <100%> (+0.59%) ⬆️
...pc/Reflection/MessageFormatterEnumerableTracker.cs 94.26% <0%> (-1.92%) ⬇️
...pc/Reflection/MessageFormatterDuplexPipeTracker.cs 94.11% <0%> (-1.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d51bd85...1c398af. Read the comment docs.

@AArnott AArnott merged commit 64dc300 into microsoft:master Dec 2, 2019
@AArnott AArnott deleted the fixHangOnDeserializationException branch December 2, 2019 20:02
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.

3 participants