diff options
| author | Jannis R <mail@jannisr.de> | 2021-03-03 13:54:07 +0100 |
|---|---|---|
| committer | Jannis R <mail@jannisr.de> | 2021-03-03 13:55:18 +0100 |
| commit | ec8e8c67083404440d40067e5a40351521295397 (patch) | |
| tree | f7f6c603787abc61cd4f669ccb15c384fe884ce8 /readme.md | |
| parent | d7b005b9090b6d0a895906cba0cb1c8cc41805f7 (diff) | |
connect()/request(): add connectTimeout with 60s default
closes #7
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: {}, } |
