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 channel close procedure when the peer dies or our handler goes down #9103

Open
wants to merge 2 commits into
base: maint
Choose a base branch
from

Conversation

yarisx
Copy link
Contributor

@yarisx yarisx commented Nov 22, 2024

Fix proposal for the issue #9102

Copy link
Contributor

github-actions bot commented Nov 22, 2024

CT Test Results

    2 files     29 suites   18m 23s ⏱️
  463 tests   459 ✅  4 💤 0 ❌
1 668 runs  1 644 ✅ 24 💤 0 ❌

Results for commit 557de4f.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Nov 25, 2024
@u3s u3s self-assigned this Nov 26, 2024
@u3s u3s added the testing currently being tested, tag is used by OTP internal CI label Nov 27, 2024
@yarisx yarisx marked this pull request as draft November 29, 2024 15:50
@yarisx
Copy link
Contributor Author

yarisx commented Nov 29, 2024

There is possibility to get a crash if the channel handler goes down before receiving 'channel-open-confirmation' from the peer. I have an update to fix that but need some time to make a test.

@u3s u3s removed the testing currently being tested, tag is used by OTP internal CI label Dec 2, 2024
Account for the case when user channel handler goes down before the channel
opening procedure is completed: if channel open confirmation is received for
such channel - the channel is automatically closed.

Add a test for such scenario.
@yarisx yarisx marked this pull request as ready for review December 3, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants