-
Notifications
You must be signed in to change notification settings - Fork 79
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
Unblock handshake ch on close #349
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #349 +/- ##
==========================================
- Coverage 81.34% 81.11% -0.23%
==========================================
Files 51 51
Lines 3339 3347 +8
==========================================
- Hits 2716 2715 -1
- Misses 479 485 +6
- Partials 144 147 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
association.go
Outdated
select { | ||
case a.handshakeCompletedCh <- ErrHandshakeCookieEcho: | ||
case <-a.closeWriteLoopCh: // check the read/write sides | ||
case <-a.readLoopCloseCh: |
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.
Should we factor this out into
func (a *Association) completeHandshake(err error) error
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.
I'm not sure given that not all the selects contain the same cases. Although making them the same cases probably can't hurt?
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.
I am fine either way.
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.
Given they are receives, I'll refactor it :)
194ba43
to
d7a4bdf
Compare
@sukunrt made that change, ty for the suggestion. |
Fixes: