We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f066d76 + 0ee01c1 commit 1d6687bCopy full SHA for 1d6687b
1 file changed
main.go
@@ -231,8 +231,12 @@ func main() {
231
232
addr := fmt.Sprintf(":%s", *port)
233
srv := &http.Server{
234
- Addr: addr,
235
- Handler: http.DefaultServeMux,
+ Addr: addr,
+ Handler: http.DefaultServeMux,
236
+ ReadHeaderTimeout: 5 * time.Second,
237
+ ReadTimeout: 10 * time.Second,
238
+ WriteTimeout: 10 * time.Second,
239
+ IdleTimeout: 60 * time.Second,
240
}
241
242
level, err := log.ParseLevel(*logLevel)
0 commit comments