mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
make WriteTimeout default to 0 for ghttp.Server
This commit is contained in:
@ -240,7 +240,7 @@ func Config() ServerConfig {
|
||||
HTTPSAddr: "",
|
||||
Handler: nil,
|
||||
ReadTimeout: 60 * time.Second,
|
||||
WriteTimeout: 60 * time.Second,
|
||||
WriteTimeout: 0, // No timeout.
|
||||
IdleTimeout: 60 * time.Second,
|
||||
MaxHeaderBytes: 1024,
|
||||
KeepAlive: true,
|
||||
|
||||
Reference in New Issue
Block a user