Implement global query timeout option (#609)
* Add global query timeout * Tweak option settings * Add timeout test * Move query timeout option close to idle timeout
This commit is contained in:
@@ -49,6 +49,7 @@ type Options struct {
|
||||
ConnectHeaders string `long:"connect-headers" description:"List of headers to pass to the connect backend"`
|
||||
DisableConnectionIdleTimeout bool `long:"no-idle-timeout" description:"Disable connection idle timeout"`
|
||||
ConnectionIdleTimeout int `long:"idle-timeout" description:"Set connection idle timeout in minutes" default:"180"`
|
||||
QueryTimeout int `long:"query-timeout" description:"Set global query execution timeout in seconds" default:"0"`
|
||||
Cors bool `long:"cors" description:"Enable Cross-Origin Resource Sharing (CORS)"`
|
||||
CorsOrigin string `long:"cors-origin" description:"Allowed CORS origins" default:"*"`
|
||||
BinaryCodec string `long:"binary-codec" description:"Codec for binary data serialization, one of 'none', 'hex', 'base58', 'base64'" default:"none"`
|
||||
|
||||
Reference in New Issue
Block a user