Commit 85e1bd1
committed
feat: Harden HTTP server security settings
Adjust HTTP server timeouts to better support SSE streaming and improve security.
- Set ReadTimeout to 0 to prevent premature disconnection of SSE connections.
- Add IdleTimeout to prevent dangling connections.
- Set MaxHeaderBytes to a reasonable limit to mitigate memory exhaustion attacks.1 parent 439f719 commit 85e1bd1
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| |||
0 commit comments