Skip to content

fix(server): resolve deadlock by releasing reader lock during async poll#23

Merged
lhear merged 1 commit into
mainfrom
dev
May 28, 2026
Merged

fix(server): resolve deadlock by releasing reader lock during async poll#23
lhear merged 1 commit into
mainfrom
dev

Conversation

@lhear
Copy link
Copy Markdown
Owner

@lhear lhear commented May 28, 2026

  • Optimize DownloadStream::poll_next to use take-and-put-back pattern, preventing std::sync::Mutex from holding across async boundaries.
  • Implement stream rotation timeout to clean up stale rotated streams.
  • Add timeout for upload completion and expand channel capacity to 16.

- Optimize DownloadStream::poll_next to use take-and-put-back pattern, preventing std::sync::Mutex from holding across async boundaries.
- Implement stream rotation timeout to clean up stale rotated streams.
- Add timeout for upload completion and expand channel capacity to 16.
@lhear lhear merged commit 993bdb1 into main May 28, 2026
13 checks passed
@lhear lhear deleted the dev branch May 28, 2026 08: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