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 subscription channel set twice for replyTo case #128

Closed
wants to merge 1 commit into from

Conversation

colinzuo
Copy link

@colinzuo colinzuo commented Nov 3, 2023

For Subscribe, when ReplyTo header is set, the response channel will be set in the channel map twice in function processLoop.
Then if an ERROR frame is received, that response channel will be in the loop twice, the first time it will be closed, the second time will trigger panic for sending to closed channel.

Fix by force id to be equal to ReplyTo header value, and use the same trick to remove it from the channel map.

@worg
Copy link
Collaborator

worg commented Nov 23, 2023

aren't these changes already in #129 ?

@colinzuo colinzuo closed this Jan 3, 2024
@colinzuo
Copy link
Author

colinzuo commented Jan 3, 2024

Yes, I wrongly used the same branch, so close this one

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.

2 participants