Skip to content

Commit

Permalink
fix: remove default r/w timeouts on keel http services
Browse files Browse the repository at this point in the history
  • Loading branch information
dreadl0ck committed Jun 19, 2024
1 parent 7db162a commit 0b6be4f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions service/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ func NewHTTP(l *zap.Logger, name, addr string, handler http.Handler, middlewares

return &HTTP{
server: &http.Server{
Addr: addr,
ErrorLog: zap.NewStdLog(l),
IdleTimeout: 5 * time.Second,
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
Handler: middleware.Compose(l, name, handler, middlewares...),
Addr: addr,
ErrorLog: zap.NewStdLog(l),
IdleTimeout: 30 * time.Second,
// @TODO: @Kevin: proper defaults and documentation
//ReadTimeout: 5 * time.Second,
//WriteTimeout: 5 * time.Second,
Handler: middleware.Compose(l, name, handler, middlewares...),
},
name: name,
l: l,
Expand Down

0 comments on commit 0b6be4f

Please sign in to comment.