Skip to content

Fix handling of duplicate SRT conclusion handshakes on listener side#138

Open
346 wants to merge 2 commits into
datarhei:mainfrom
346:fix/resend-conclusion-response
Open

Fix handling of duplicate SRT conclusion handshakes on listener side#138
346 wants to merge 2 commits into
datarhei:mainfrom
346:fix/resend-conclusion-response

Conversation

@346

@346 346 commented May 18, 2026

Copy link
Copy Markdown

Summary

This PR fixes listener-side handling of duplicate SRT conclusion handshakes.

When a caller retransmits the conclusion handshake due to packet loss of the initial response, the listener currently ignores the duplicate request after the connection has already been accepted. As a result, the caller can time out even though the listener successfully accepted the connection.

With this change, the listener stores the accepted conclusion response and resends it upon receiving a duplicate conclusion handshake for an already accepted peer socket ID.

Changes

  • Store the conclusion response handshake on the accepted connection.
  • Resend the stored conclusion response when a duplicate conclusion request is received.
  • Continue to silently ignore duplicates if no accepted connection exists.
  • Update the repeated-handshake test to verify that the conclusion response is resent.

346 added 2 commits May 12, 2026 11:27
Store the accepted listener handshake response and resend it when a caller
retransmits the conclusion handshake. This prevents callers from timing out
when the original conclusion response is lost, while still avoiding duplicate
SRT connections for repeated conclusion requests.

Add test coverage to verify repeated conclusion handshakes receive a
conclusion response.
@gemini-code-assist

Copy link
Copy Markdown

Important

Installation incomplete: to start using Gemini Code Assist, please ask the organization owner(s) to visit the Gemini Code Assist Admin Console and sign the Terms of Services.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 80.64516% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.63%. Comparing base (171b1f6) to head (73fd62c).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
conn_request.go 80.64% 2 Missing and 4 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
+ Coverage   56.54%   56.63%   +0.08%     
==========================================
  Files          23       23              
  Lines        4237     4255      +18     
==========================================
+ Hits         2396     2410      +14     
- Misses       1519     1521       +2     
- Partials      322      324       +2     
Flag Coverage Δ
unit-linux 56.63% <80.64%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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