summaryrefslogtreecommitdiffstats
path: root/readme.md
diff options
context:
space:
mode:
authorJannis R <mail@jannisr.de>2021-03-03 13:54:07 +0100
committerJannis R <mail@jannisr.de>2021-03-03 13:55:18 +0100
commitec8e8c67083404440d40067e5a40351521295397 (patch)
treef7f6c603787abc61cd4f669ccb15c384fe884ce8 /readme.md
parentd7b005b9090b6d0a895906cba0cb1c8cc41805f7 (diff)
connect()/request(): add connectTimeout with 60s default
closes #7
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 791efe2..3b3ff89 100644
--- a/readme.md
+++ b/readme.md
@@ -135,6 +135,8 @@ request(pathOrUrl, opt = {}, cb)
useClientCerts: false,
letUserConfirmClientCertUsage: null,
clientCertStore: defaultClientCertStore,
+ // time to wait for socket connection & TLS handshake
+ connectTimeout: 60 * 1000, // 60s
// additional options to be passed into `tls.connect`
tlsOpt: {},
}
@@ -155,6 +157,8 @@ connect(opt = {}, cb)
port: 1965,
// client certificate
cert: null, key: null, passphrase: null,
+ // time to wait for socket connection & TLS handshake
+ connectTimeout: 60 * 1000, // 60s
// additional options to be passed into `tls.connect`
tlsOpt: {},
}