You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds configuration options HTTPClientConnectTimeout and
HTTPClientRequestTimeout to control the connection and request timeout
repectively of the HTTP client.
Also added to the following app binaries:
- nsqadmin
- nsq_stat
- nsq_to_file
- nsq_to_http
Closesnsqio#715Closesnsqio#680
Copy file name to clipboardExpand all lines: apps/nsqadmin/main.go
+3
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,9 @@ var (
36
36
37
37
notificationHTTPEndpoint=flagSet.String("notification-http-endpoint", "", "HTTP endpoint (fully qualified) to which POST notifications of admin actions will be sent")
38
38
39
+
httpConnectTimeout=flagSet.Duration("http-client-connect-timeout", 2*time.Second, "timeout for HTTP connect")
40
+
httpRequestTimeout=flagSet.Duration("http-client-request-timeout", 5*time.Second, "timeout for HTTP request")
41
+
39
42
httpClientTLSInsecureSkipVerify=flagSet.Bool("http-client-tls-insecure-skip-verify", false, "configure the HTTP client to skip verification of TLS certificates")
40
43
httpClientTLSRootCAFile=flagSet.String("http-client-tls-root-ca-file", "", "path to CA file for the HTTP client")
41
44
httpClientTLSCert=flagSet.String("http-client-tls-cert", "", "path to certificate file for the HTTP client")
0 commit comments