Commit graph

2 commits

Author SHA1 Message Date
Snider
280f920410 fix: skip timeout tests under race detector (upstream gin-contrib/timeout data race)
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 3m54s
gin-contrib/timeout@v1.1.0 has a known data race on Context.index between
the timeout goroutine and the handler goroutine. Use build-tag conditional
compilation to detect -race and skip affected tests.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 08:05:16 +00:00
Snider
6521b90d26 feat: add WithTimeout per-request timeout middleware
Wraps gin-contrib/timeout to enforce per-request deadlines. When a
handler exceeds the configured duration, the client receives a 504
Gateway Timeout with the standard Fail("timeout", ...) error envelope.

Co-Authored-By: Virgil <virgil@lethean.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 23:18:24 +00:00