Skip to content

Commit 5598ca2

Browse files
committed
timeout
1 parent 0383f69 commit 5598ca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ func main() {
8282
BodyLimit: 100 * 1024 * 1024, // 100MB to match nginx configuration
8383
// Enable graceful shutdown
8484
DisableStartupMessage: true,
85-
IdleTimeout: 5 * time.Second,
86-
ReadTimeout: 10 * time.Second,
87-
WriteTimeout: 10 * time.Second,
88-
ReadBufferSize: 16 * 1024 * 1024, // 16MB header buffer size
85+
IdleTimeout: 60 * time.Second,
86+
ReadTimeout: 60 * time.Second,
87+
WriteTimeout: 60 * time.Second,
88+
ReadBufferSize: 24 * 1024 * 1024, // 24MB header buffer size
8989
})
9090

9191
// Global rate limiter - 100 requests per minute with IP + Token based protection

0 commit comments

Comments
 (0)