-
Notifications
You must be signed in to change notification settings - Fork 562
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 unobserved SocketException (rebase of PR 771, which addresses Issue 770) #836
Fix unobserved SocketException (rebase of PR 771, which addresses Issue 770) #836
Conversation
@nmandzyk and @Rob-Hague - I rebased the original PR #771 on latest. Looking into that has led me to (If I do this, and by some weird chance the var gets referenced after (I suspect SocketInitiatorThread might have a similar issue, but I'll enable nullable on this file and clean it up in another commit.) |
I've made the nullable fix in the second commit. Please tell me what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nullable changes look good. I've left a few comments on SocketReader, although they mostly pertain to the original PR. TBH the benefit/risk ratio on this PR doesn't feel super high
I made those changes. I have also nullable-ized and cleaned up SocketInitiatorThread, and also replicated the similar changes in that file. All tests appear passing, and I would again appreciate a pair of eyes to review these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
resolves connamara#770 (original issue) resolves connamara#771 (original PR, this is a rebase) Perform socket read operations according to Task-based asynchronous pattern (TAP) instead of Asynchronous Programming Model (APM) Also cleanup/nullable-ize SocketInitiatorThread (this part by @gbirchmeier)
6b5b278
to
76cbf8f
Compare
resolves #770 (original issue)
resolves #771 (original PR, this is a rebase)
Perform socket read operations according to Task-based asynchronous pattern (TAP) instead of Asynchronous Programming Model (APM)