upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/process.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 23:00:59 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 23:00:59 +0000
commitbe1f21aa1ec9d8666f96005ee203413441e6d220 (patch)
tree636c85326cec99a9eb93c2798b106ff47f82b3c9 /src/git/process.rs
parent615bfa0e3e892a22f1691a6a1172ea755a7c3149 (diff)
fix: eliminate port binding race condition in SimpleGitServer
SimpleGitServer had a TOCTOU race where find_free_port() would bind a port, immediately release it, then the caller would try to bind it - allowing another process to grab the port in between. This caused intermittent test failures. Changed to bind the port once and keep it bound while converting from std to tokio listener, matching the pattern already used in SmartGitServer. Deleted the now-unused find_free_port() helper function.
Diffstat (limited to 'src/git/process.rs')
0 files changed, 0 insertions, 0 deletions