|
|
|
@ -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
|
|
|
|
} |
|
|
|
|
|
|
|
|