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

uTP: compare AckNr's for ST_STATE packets #709

Merged
merged 3 commits into from
Jan 16, 2025
Merged

uTP: compare AckNr's for ST_STATE packets #709

merged 3 commits into from
Jan 16, 2025

Conversation

ScottyPoi
Copy link
Collaborator

@ScottyPoi ScottyPoi commented Jan 16, 2025

This is a fix for PR: #702

When sorting incoming packets, the uTP packet heap sorts packets from the same request by seqNr.

This fails during outgoing uTP streams, since the seqNr of ST_STATE (ack) packets does not increment. Instead, we should sort these packets by ackNr.

Also adjusted the logging for these packets to display ackNr.

Also fixed a bug in the logging of expected ackNr's (needed).

@ScottyPoi ScottyPoi merged commit 1889f4d into master Jan 16, 2025
5 checks passed
@ScottyPoi ScottyPoi deleted the ackNr branch January 16, 2025 00:34
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.

1 participant