Browse Source

fix: updated read and write timeouts to 2 hours

document-upload-removal-layout-update
nic 7 months ago
parent
commit
46a48ba2ec
  1. 4
      apps/web/main.go

4
apps/web/main.go

@ -87,8 +87,8 @@ func main() {
server := &http.Server{
Addr: ":" + port,
Handler: r,
ReadTimeout: 30 * time.Minute, // Large timeout for big file uploads
WriteTimeout: 30 * time.Minute, // Large timeout for big file responses
ReadTimeout: 2 * time.Hour, // Large timeout for big file uploads
WriteTimeout: 2 * time.Hour, // Large timeout for big file responses
IdleTimeout: 120 * time.Second, // How long to wait for the next request
}

Loading…
Cancel
Save