Skip to content

Commit

Permalink
Bump HTTP timeout to 5 minutes.
Browse files Browse the repository at this point in the history
This was done as a result of the pull-request in #30, which
wanted to add user-configurable setting.  I'm aware that there
are a few too many flags in use already, so I'd rather make
the defaults reasonable.

This closes #30.
  • Loading branch information
Steve Kemp committed Aug 24, 2018
1 parent 13e0207 commit 8b36147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,8 @@ func serve(settings serveCmd) {
srv := &http.Server{
Addr: bind,
Handler: loggedRouter,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
ReadTimeout: 300 * time.Second,
WriteTimeout: 300 * time.Second,
}

//
Expand Down

0 comments on commit 8b36147

Please sign in to comment.