Make DialTimeout configurable.

This commit is contained in:
NI
2019-08-12 23:50:24 +08:00
parent db633f59bd
commit f3336d61a0
17 changed files with 173 additions and 119 deletions

View File

@@ -114,6 +114,12 @@ Here is the options that can be used in a configuration file and what it for:
// Web interface access password. Set to empty to allow public access
"SharedKey": "WEB_ACCESS_PASSWORD",
// Remote dial timeout. This limits how long of time the backend can spend
// to connect to a remote host. The max timeout will be determined by
// server configuration (ReadTimeout).
// (In Second)
"DialTimeout": 10,
// Socks5 proxy. When set, we will try to connect remote through the given
// proxy
"Socks5": "localhost:1080",
@@ -136,23 +142,29 @@ Here is the options that can be used in a configuration file and what it for:
// Timeout of initial request. HTTP handshake must be finished within
// this time
// (In Second)
"InitialTimeout": 3,
// How long the connection can be idle before the server disconnects the
// client
// (In Second)
"ReadTimeout": 60,
// How long the server will wait until the client connect is ready to
// recieve new data
// (In Second)
"WriteTimeout": 60,
// The interval between internal echo requests
// (In Second)
"HeartbeatTimeout": 20,
// Forced delay between each request
// (In Milisecond)
"ReadDelay": 10,
// Forced delay between each write
// (In Milisecond)
"WriteDelay": 10,
// Path to TLS certificate file. Set empty to use HTTP