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

avoid reconnection logs on normal close #449

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

theomonnom
Copy link
Member

No description provided.

@theomonnom theomonnom requested a review from a team September 30, 2024 19:15
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

nit on the log, otherwise lgtm

proto::leave_request::Action::Resume
| proto::leave_request::Action::Reconnect => {
log::warn!(
"received session close: {:?} {:?} {:?}",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"received session close: {:?} {:?} {:?}",
"received server-initiated reconnect: {:?} {:?} {:?}",

Copy link
Member Author

Choose a reason for hiding this comment

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

it isn't necessarily server-initiated, this part needs cleanup but it is also called when the SignalClient is being closed unexpectedly. In this case we create our own leave_request locally with the reason Unknown.

@theomonnom theomonnom merged commit 5bc686b into main Sep 30, 2024
8 of 16 checks passed
@theomonnom theomonnom deleted the theo/avoid-reconnection-logs branch September 30, 2024 19:25
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