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

better session disposal #668

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

better session disposal #668

wants to merge 3 commits into from

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Sep 13, 2024

This PR introduce a better strategy to dispose communication sessions. It also tracks who disposed the session.

@adecaro adecaro changed the title F dispose session better session disposal Sep 19, 2024
@@ -134,4 +135,5 @@ func (s *localSession) Receive() <-chan *view.Message {

func (s *localSession) Close() {
s.info.Closed = true
s.info.WhoClosed = string(debug.Stack())
Copy link
Member

Choose a reason for hiding this comment

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

I guess the WhoClosed was used for debugging the disposable session.

Copy link
Contributor

@alexandrosfilios alexandrosfilios left a comment

Choose a reason for hiding this comment

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

Not necessary. We can postpone.

@adecaro adecaro requested review from alexandrosfilios and mbrandenburger and removed request for mbrandenburger November 20, 2024 10:48
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.

3 participants