Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Recover must rebuild the link atomically #187

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Recover must rebuild the link atomically #187

merged 1 commit into from
Aug 18, 2020

Conversation

jhendrixMSFT
Copy link
Member

Take the read lock when accessing r.receiver

Take the read lock when accessing r.receiver
@jhendrixMSFT
Copy link
Member Author

Fixes #186

Copy link
Member

@catalinaperalta catalinaperalta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhendrixMSFT jhendrixMSFT merged commit 4ace8d4 into Azure:master Aug 18, 2020
@jhendrixMSFT jhendrixMSFT deleted the receiver_race branch August 18, 2020 23:26
jhendrixMSFT added a commit that referenced this pull request Aug 19, 2020
The fix in (#187) introduced a hang when closing the receiver.
Don't hold the read lock before calling Receive() as it blocks.
Return a connection closed error.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants