Pull request: home: inc http timeouts

Merge in DNS/adguard-home from 2671-timeout to master

Updates .
Updates .

Squashed commit of the following:

commit 79b1a36a79e3c7c26fc1a4b171feb050690f8c83
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Feb 15 15:25:26 2021 +0300

    all: doc changes

commit 84229b782bde433faa4ed8b71dd092965787d30e
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Feb 15 15:12:33 2021 +0300

    home: imp names

commit b18d7b08473c99ddd37ecfa14be8d48838c2afab
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Feb 15 15:04:27 2021 +0300

    home: inc http timeouts
This commit is contained in:
Ainar Garipov 2021-02-15 15:36:38 +03:00
parent aebcd74efe
commit d295621352
3 changed files with 12 additions and 12 deletions
internal/home

View file

@ -16,17 +16,14 @@ import (
)
const (
// ReadTimeout is the maximum duration for reading the entire request,
// readTimeout is the maximum duration for reading the entire request,
// including the body.
ReadTimeout = 10 * time.Second
// ReadHeaderTimeout is the amount of time allowed to read request
// headers.
ReadHeaderTimeout = 10 * time.Second
// WriteTimeout is the maximum duration before timing out writes of the
readTimeout = 30 * time.Second
// readHdrTimeout is the amount of time allowed to read request headers.
readHdrTimeout = 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 {