We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24f9f05 commit 95c7960Copy full SHA for 95c7960
services/httpd/config.go
@@ -64,6 +64,7 @@ type Config struct {
64
MaxEnqueuedWriteLimit int `toml:"max-enqueued-write-limit"`
65
EnqueuedWriteTimeout time.Duration `toml:"enqueued-write-timeout"`
66
TLS *tls.Config `toml:"-"`
67
+ ReadTimeout time.Duration `toml:"read-timeout"`
68
}
69
70
// NewConfig returns a new Config with default settings.
services/httpd/service.go
@@ -87,7 +87,8 @@ func NewService(c Config) *Service {
87
bindSocket: c.BindSocket,
88
Handler: handler,
89
httpServer: http.Server{
90
- Handler: handler,
+ Handler: handler,
91
+ ReadTimeout: c.ReadTimeout,
92
},
93
Logger: zap.NewNop(),
94
0 commit comments