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: decrease connection info based on current state #7165

Merged
merged 1 commit into from Mar 15, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 15, 2024

fixes a bug where we were calling self.connection_info.decr_out(); when we should have updated the connection info based on the current state of the peer.

This is not possible to Hit under normal operations only if manually triggered via

/// Can be used to tell the session to disconnect the connection/abort the handshake process.
pub(crate) disconnect_tx: Option<oneshot::Sender<()>>,

which we currently don't do.

also renames the function properly

@mattsse mattsse added the A-networking Related to networking in general label Mar 15, 2024
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

ah, makes sense. decr_state seems like the right thing to call here

@mattsse mattsse added this pull request to the merge queue Mar 15, 2024
Merged via the queue into main with commit 26f290e Mar 15, 2024
27 checks passed
@mattsse mattsse deleted the matt/decrease-connectioninfo-properly branch March 15, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants