Skip to content

Commit 5995d1d

Browse files
committed
fix(cmap): accept all node TLS options as pool options
NODE-2424
1 parent 9698a76 commit 5995d1d

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

lib/cmap/connection_pool.js

+27-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ const kCancelled = Symbol('cancelled');
3636

3737
const VALID_POOL_OPTIONS = new Set([
3838
// `connect` options
39-
'host',
40-
'port',
39+
'ssl',
4140
'bson',
4241
'connectionType',
4342
'monitorCommands',
@@ -46,14 +45,38 @@ const VALID_POOL_OPTIONS = new Set([
4645
'compression',
4746

4847
// node Net options
49-
'ssl',
48+
'host',
49+
'port',
5050
'localAddress',
5151
'localPort',
5252
'family',
5353
'hints',
5454
'lookup',
55-
'checkServerIdentity',
55+
'path',
56+
57+
// node TLS options
58+
'ca',
59+
'cert',
60+
'sigalgs',
61+
'ciphers',
62+
'clientCertEngine',
63+
'crl',
64+
'dhparam',
65+
'ecdhCurve',
66+
'honorCipherOrder',
67+
'key',
68+
'privateKeyEngine',
69+
'privateKeyIdentifier',
70+
'maxVersion',
71+
'minVersion',
72+
'passphrase',
73+
'pfx',
74+
'secureOptions',
75+
'secureProtocol',
76+
'sessionIdContext',
77+
'allowHalfOpen',
5678
'rejectUnauthorized',
79+
'pskCallback',
5780
'ALPNProtocols',
5881
'servername',
5982
'checkServerIdentity',

0 commit comments

Comments
 (0)