Skip to content

Fix a deadlock with Abort - #441

Merged
JoTurk merged 1 commit into
masterfrom
set-deadline-on-abort
Nov 27, 2025
Merged

JoTurk merged 1 commit into
masterfrom
set-deadline-on-abort

Conversation

@JoTurk

@JoTurk JoTurk commented Nov 27, 2025

Copy link
Copy Markdown
Member

Description

Fix a deadlock with write and read on abort.
more likely to happen with hanging TCP connections.

I think the deadlock was caused by half-open TCP connections and is related to go tls behavior golang/go#31224

Reference issue

This fixes an issue for livekit reported by @boks1971

Probably related to pion/interceptor#384

@codecov

codecov Bot commented Nov 27, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.81%. Comparing base (57f9351) to head (4d42391).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #441      +/-   ##
==========================================
+ Coverage   83.57%   83.81%   +0.24%     
==========================================
  Files          51       51              
  Lines        3445     3447       +2     
==========================================
+ Hits         2879     2889      +10     
+ Misses        426      421       -5     
+ Partials      140      137       -3     
Flag Coverage Δ
go 83.81% <100.00%> (+0.24%) ⬆️

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.

Fix a deadlock with write and read on abort.
more likely to happen with tcp.

Co-authored-by: boks1971 <[email protected]>
@JoTurk
JoTurk force-pushed the set-deadline-on-abort branch from 7fb8647 to 4d42391 Compare November 27, 2025 14:24
@JoTurk
JoTurk merged commit 4d42391 into master Nov 27, 2025
@JoTurk
JoTurk deleted the set-deadline-on-abort branch November 27, 2025 14:48
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