diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 23:00:59 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 23:00:59 +0000 |
| commit | be1f21aa1ec9d8666f96005ee203413441e6d220 (patch) | |
| tree | 636c85326cec99a9eb93c2798b106ff47f82b3c9 /docs/tutorials/first-audit.md | |
| parent | 615bfa0e3e892a22f1691a6a1172ea755a7c3149 (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 'docs/tutorials/first-audit.md')
0 files changed, 0 insertions, 0 deletions