Skip to content

Navigation Menu

Sign in
Sign up

Return 503 for OPTIONS when SIP node is not healthy (#764) - #770

Open
lixuanqun wants to merge 2 commits into
livekit:main from
lixuanqun:cursor/fix-options-drain-33f3
Open

Return 503 for OPTIONS when SIP node is not healthy (#764) #770
lixuanqun wants to merge 2 commits into
livekit:main from
lixuanqun:cursor/fix-options-drain-33f3

Conversation

@lixuanqun

@lixuanqun lixuanqun commented Aug 3, 2026

Copy link
Copy Markdown

SIP proxies often probe backends with OPTIONS. Always answering 200 kept draining nodes in the pool. Mirror CreateSIPParticipant/HTTP health and answer 503 unless HealthOK. Also reject new inbound INVITEs while unhealthy; in-dialog re-INVITEs for active calls still succeed.

SIP proxies often probe backends with OPTIONS. Always answering 200 kept
draining nodes in the pool. Mirror CreateSIPParticipant/HTTP health and
answer 503 unless HealthOK. Also reject new inbound INVITEs while
unhealthy; in-dialog re-INVITEs for active calls still succeed.
Co-authored-by: li xuanqun <793005378@qq.com>
lixuanqun requested a review from a team as a code owner August 3, 2026 11:06
devin-ai-integration[bot]

This comment was marked as resolved.

...UnderLoad
Out-of-dialog OPTIONS still return 503 when unhealthy. In-dialog OPTIONS
for active calls answer 200 during drain so SBCs don't tear down live
sessions. New INVITEs are rejected only when Stopped/NotStarted, not on
transient HealthUnderLoad (which broke CI on busy runners).
Co-authored-by: li xuanqun <793005378@qq.com>

codecov Bot commented Aug 3, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.98%. Comparing base (0460b40) to head (3fc69ea).
⚠️ Report is 368 commits behind head on main.

Files with missing lines Patch % Lines
pkg/sip/inbound.go 50.00% 10 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## main #770 +/- ##
==========================================
+ Coverage 65.25% 65.98% +0.73% 
==========================================
 Files 51 41 -10 
 Lines 6588 7968 +1380 
==========================================
+ Hits 4299 5258 +959 
- Misses 1915 2226 +311 
- Partials 374 484 +110 

☔ View full report in Codecov by Harness.
📢 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

Reviewers

@devin-ai-integration devin-ai-integration[bot] devin-ai-integration[bot] left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /