Skip to content

fixed the issue of sending on closed channel#542

Merged
kradalby merged 2 commits intojuanfont:mainfrom
mpldr:issue-342-send-on-closed-channel
Apr 11, 2022
Merged

fixed the issue of sending on closed channel#542
kradalby merged 2 commits intojuanfont:mainfrom
mpldr:issue-342-send-on-closed-channel

Conversation

@mpldr
Copy link
Copy Markdown
Contributor

@mpldr mpldr commented Apr 10, 2022

This commit fixes the issue of headscale crashing after sending on a
closed channel by moving the channel close to the sender side, instead
of the creator. closeChanWithLog is also implemented with generics now.

Signed-off-by: Moritz Poldrack git@moritz.sh

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Fixes #342

@mpldr mpldr requested review from juanfont and kradalby as code owners April 10, 2022 15:26
@mpldr
Copy link
Copy Markdown
Contributor Author

mpldr commented Apr 10, 2022

This Commit was also sent to @juanfont 10.04.2022 22:37 UTC.

This commit fixes the issue of headscale crashing after sending on a
closed channel by moving the channel close to the sender side, instead
of the creator. closeChanWithLog is also implemented with generics now.

Fixes: #342
Signed-off-by: Moritz Poldrack <git@moritz.sh>
@kradalby
Copy link
Copy Markdown
Collaborator

Happy to merge and test this when the tests pass, can you add an entry to the changelog?

@kradalby kradalby merged commit 367f848 into juanfont:main Apr 11, 2022
@mpldr mpldr deleted the issue-342-send-on-closed-channel branch April 11, 2022 10:49
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.

panic: send on closed channel

2 participants