Skip to content

Commit 6a67839

Browse files
atharva1051Copilot
andauthored
fix: Read/Write/Idle Timeout
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e0ce7fc commit 6a67839

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/ghmcp/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,9 @@ func RunHTTPServer(cfg HTTPServerConfig) error {
846846
Addr: addr,
847847
Handler: handler,
848848
ReadHeaderTimeout: 10 * time.Second,
849+
ReadTimeout: 30 * time.Second,
850+
WriteTimeout: 30 * time.Second,
851+
IdleTimeout: 120 * time.Second,
849852
}
850853

851854
// Start server in goroutine

0 commit comments

Comments
 (0)