Browse Source

Add HTTP timeout

tags/v2.0.0-rc1
9seconds 5 years ago
parent
commit
e167b85d3b
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      config/config.go
  2. 1
    0
      example.config.toml

+ 2
- 0
config/config.go View File

34
 		} `json:"public-ip"`
34
 		} `json:"public-ip"`
35
 		Timeout struct {
35
 		Timeout struct {
36
 			TCP  TypeDuration `json:"tcp"`
36
 			TCP  TypeDuration `json:"tcp"`
37
+			HTTP TypeDuration `json:"http"`
37
 			Idle TypeDuration `json:"idle"`
38
 			Idle TypeDuration `json:"idle"`
38
 		} `json:"timeout"`
39
 		} `json:"timeout"`
39
 		DOHIP   TypeIP    `json:"doh-ip"`
40
 		DOHIP   TypeIP    `json:"doh-ip"`
103
 		} `toml:"public-ip" json:"public-ip,omitempty"`
104
 		} `toml:"public-ip" json:"public-ip,omitempty"`
104
 		Timeout struct {
105
 		Timeout struct {
105
 			TCP  string `toml:"tcp" json:"tcp,omitempty"`
106
 			TCP  string `toml:"tcp" json:"tcp,omitempty"`
107
+			HTTP string `toml:"http" json:"http,omitempty"`
106
 			Idle string `toml:"idle" json:"idle,omitempty"`
108
 			Idle string `toml:"idle" json:"idle,omitempty"`
107
 		} `toml:"timeout" json:"timeout,omitempty"`
109
 		} `toml:"timeout" json:"timeout,omitempty"`
108
 		DOHIP   string   `toml:"doh-ip" json:"doh-ip,omitempty"`
110
 		DOHIP   string   `toml:"doh-ip" json:"doh-ip,omitempty"`

+ 1
- 0
example.config.toml View File

111
 # https://www.ndss-symposium.org/wp-content/uploads/2020/02/23087-paper.pdf
111
 # https://www.ndss-symposium.org/wp-content/uploads/2020/02/23087-paper.pdf
112
 [network.timeout]
112
 [network.timeout]
113
 tcp = "5s"
113
 tcp = "5s"
114
+http = "10s"
114
 idle = "1m"
115
 idle = "1m"
115
 
116
 
116
 # FakeTLS can compare timestamps to prevent probes. Each message has
117
 # FakeTLS can compare timestamps to prevent probes. Each message has

Loading…
Cancel
Save