diff --git a/node/config.go b/node/config.go index 2035c3b3a0..a4d5920a8b 100644 --- a/node/config.go +++ b/node/config.go @@ -120,6 +120,8 @@ type Config struct { // exposed. HTTPModules []string `toml:",omitempty"` + // HTTPTimeouts allows for customization of the timeout values used by the HTTP RPC + // interface. HTTPTimeouts rpc.HTTPTimeouts // WSHost is the host interface on which to start the websocket RPC server. If diff --git a/rpc/http.go b/rpc/http.go index f571a79171..16fb61b0fe 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -90,6 +90,8 @@ type HTTPTimeouts struct { IdleTimeout time.Duration } +// DefaultHTTPTimeouts represents the default timeout values used if further +// configuration is not provided. var DefaultHTTPTimeouts = HTTPTimeouts{ ReadTimeout: 30 * time.Second, WriteTimeout: 30 * time.Second,