Skip to content

Commit 77132f5

Browse files
committed
Revert "chore(node): add http timeout defaults"
This reverts commit 27991b3.
1 parent 27991b3 commit 77132f5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

node/http.go

+1-11
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ import (
2626
"google.golang.org/grpc"
2727
)
2828

29-
const (
30-
defaultReadTimeout = 30 * time.Second
31-
defaultReadHeaderTimeout = 30 * time.Second
32-
defaultWriteTimeout = 30 * time.Second
33-
defaultIdleTimeout = 2 * time.Minute
34-
)
35-
3629
type httpService struct {
3730
srv *http.Server
3831
}
@@ -69,10 +62,7 @@ func makeHTTPService(host string, port uint16, handler http.Handler) *httpServic
6962
srv: &http.Server{
7063
Addr: net.JoinHostPort(host, portStr),
7164
Handler: handler,
72-
ReadHeaderTimeout: defaultReadHeaderTimeout,
73-
ReadTimeout: defaultReadTimeout,
74-
WriteTimeout: defaultWriteTimeout,
75-
IdleTimeout: defaultIdleTimeout,
65+
ReadHeaderTimeout: 30 * time.Second,
7666
},
7767
}
7868
}

0 commit comments

Comments
 (0)