Skip to content

fix(dispatch): close idle NNTP sockets after the idle-release delay - #291

Merged
thedancingdeveloper merged 2 commits into
mainfrom
fix/idle-nntp-release
Oct 24, 2026
Merged

thedancingdeveloper merged 2 commits into
mainfrom
fix/idle-nntp-release

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Collaborator

Without WebDAV pools sharing the server budget, download workers kept every NNTP socket open forever once the queue drained. On sabnzbd.sprooty.com (v1.7.0-beta.8) the pool panel showed ~250 sockets connected with an empty queue and active: 0, and the provider's connection slots stayed held.

Idle workers now release their socket after idle_release (30s) in every configuration, as SABnzbd does, and reconnect when new work arrives.

  • next_work_item: drop the budget.has_pools() gate on the idle-release check
  • test without_webdav_idle_workers_keep_their_sockets → without_webdav_idle_workers_close_their_sockets
  • doc comments updated

Checks: cargo nextest run -p nzb-dispatch (111 passed), clippy -D warnings, fmt.

🤖 Generated with Claude Code

thedancingdeveloper and others added 2 commits October 24, 2026 02:29
Without WebDAV pools sharing the budget, download workers kept their
sockets open forever once the queue drained, so the pool panel showed
every socket as connected with nothing downloading and the provider's
connection slots stayed held. Idle workers now release their socket
after idle_release (30s) in every configuration, as SABnzbd does, and
reconnect when new work arrives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thedancingdeveloper
thedancingdeveloper added this pull request to the merge queue Oct 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 24, 2026
@thedancingdeveloper
thedancingdeveloper added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit b5dc542 Oct 24, 2026
9 checks passed
@thedancingdeveloper
thedancingdeveloper deleted the fix/idle-nntp-release branch October 24, 2026 02:52
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