Skip to content

Reject zero per-repo concurrency - #87

Open
behinddwalls wants to merge 1 commit into
tobi:mainfrom
behinddwalls:preetam/issue-79-per-repo-concurrency
Open

behinddwalls wants to merge 1 commit into
tobi:mainfrom
behinddwalls:preetam/issue-79-per-repo-concurrency

Conversation

@behinddwalls

@behinddwalls behinddwalls commented Sep 30, 2026 •

Copy link
Copy Markdown

Summary

Why?

A zero-sized per-repository semaphore can never grant a permit, so a valid-looking configuration caused every Git request for a repository to wait indefinitely.

What?

Require server.max_concurrent_per_repo to be positive and add a regression test for the invalid zero value.

Test Plan

✅ cargo test -p walgit-config zero_per_repo_concurrency_is_rejected
✅ cargo fmt --all -- --check
✅ git diff --check

Issue

Closes #79

A zero-sized per-repository semaphore can never grant a permit, so a valid-looking configuration caused every Git request for a repository to wait indefinitely.

Require `server.max_concurrent_per_repo` to be positive and add a regression test for the invalid zero value.

✅ `cargo test -p walgit-config zero_per_repo_concurrency_is_rejected`
✅ `cargo fmt --all -- --check`
✅ `git diff --check`

Closes tobi#79
@behinddwalls
behinddwalls force-pushed the preetam/issue-79-per-repo-concurrency branch from 74daa5d to 77ade75 Compare October 1, 2026 18:11

This branch has not been deployed

No deployments
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.

max_concurrent_per_repo=0 passes validation and stalls Git requests

1 participant