Configure HTTP server with sensible timeouts: - ReadTimeout: 30s (time to read entire request) - WriteTimeout: 30s (time to write response) - IdleTimeout: 120s (keep-alive connection timeout) - ReadHeaderTimeout: 10s (time to read request headers) For SSE connections, use http.ResponseController to extend write deadlines before each write, preventing timeout on long-lived streams while still protecting against slow clients. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 KiB
18 KiB