mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
rpc: document HTTPTimeouts.
This commit is contained in:
parent
96a49d97e5
commit
1307a9c89a
2 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,8 @@ type Config struct {
|
||||||
// exposed.
|
// exposed.
|
||||||
HTTPModules []string `toml:",omitempty"`
|
HTTPModules []string `toml:",omitempty"`
|
||||||
|
|
||||||
|
// HTTPTimeouts allows for customization of the timeout values used by the HTTP RPC
|
||||||
|
// interface.
|
||||||
HTTPTimeouts rpc.HTTPTimeouts
|
HTTPTimeouts rpc.HTTPTimeouts
|
||||||
|
|
||||||
// WSHost is the host interface on which to start the websocket RPC server. If
|
// WSHost is the host interface on which to start the websocket RPC server. If
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ type HTTPTimeouts struct {
|
||||||
IdleTimeout time.Duration
|
IdleTimeout time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DefaultHTTPTimeouts represents the default timeout values used if further
|
||||||
|
// configuration is not provided.
|
||||||
var DefaultHTTPTimeouts = HTTPTimeouts{
|
var DefaultHTTPTimeouts = HTTPTimeouts{
|
||||||
ReadTimeout: 30 * time.Second,
|
ReadTimeout: 30 * time.Second,
|
||||||
WriteTimeout: 30 * time.Second,
|
WriteTimeout: 30 * time.Second,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue