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

[core] Removed a wrong assertion about ACK timestamp. #2971

Merged

Conversation

maxsharabayko
Copy link
Collaborator

The debug assertion was added in PR #1628 (SRT v1.4.3). It assumes a timestamp of an ACK packet is positive.
However, a timestamp value of 0 is a valid value. For an ACK it is unlikely to happen as the first full ACK is sent only after 10 ms (except for issue #2829 in SRT v1.5.3). Also handshaking takes some time.
Still lite ACK may be sent earlier in case of higher data rates.

Anyway, removing the debug assertion.

@maxsharabayko maxsharabayko added Type: Maintenance Work required to maintain or clean up the code [core] Area: Changes in SRT library core labels Jul 3, 2024
@maxsharabayko maxsharabayko added this to the v1.5.4 milestone Jul 3, 2024
@maxsharabayko maxsharabayko merged commit 0680092 into Haivision:master Jul 3, 2024
11 of 12 checks passed
@maxsharabayko maxsharabayko deleted the hotfix/assert-ackpkt-timestamp branch July 3, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants