Skip to content

Commit

Permalink
home: inc http timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Feb 15, 2021
1 parent aebcd74 commit b18d7b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/home/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import (
const (
// ReadTimeout is the maximum duration for reading the entire request,
// including the body.
ReadTimeout = 10 * time.Second
ReadTimeout = 30 * time.Second

// ReadHeaderTimeout is the amount of time allowed to read request
// headers.
ReadHeaderTimeout = 10 * time.Second
ReadHeaderTimeout = 30 * time.Second

// WriteTimeout is the maximum duration before timing out writes of the
// response.
WriteTimeout = 10 * time.Second
WriteTimeout = 30 * time.Second
)

type webConfig struct {
Expand Down

0 comments on commit b18d7b0

Please sign in to comment.