Increase write timeout to prevent forcibly closing connections.
This commit is contained in:
parent
696c07b8c7
commit
d759617d1f
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -263,7 +263,7 @@ func main() {
|
||||||
listener, err := net.Listen("unix", socket)
|
listener, err := net.Listen("unix", socket)
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
ReadTimeout: 5 * time.Second,
|
ReadTimeout: 5 * time.Second,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 1 * time.Hour,
|
||||||
Addr: ":8080",
|
Addr: ":8080",
|
||||||
Handler: &requesthandler{},
|
Handler: &requesthandler{},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue