This repository was archived by the owner on May 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ client is:
32
32
| tlsOptions | Additional options passed to TLS connection layer when connecting via ` ldaps:// ` (See: The TLS docs for node.js)|
33
33
| idleTimeout | Milliseconds after last activity before client emits idle event|
34
34
| strictDN | Force strict DN parsing for client methods (Default is true)|
35
+ | reconnect | Try to reconnect when the connection gets lost (Default is false)|
35
36
36
37
### Note On Logger
37
38
@@ -48,9 +49,17 @@ Known compatible loggers are:
48
49
## Connection management
49
50
50
51
As LDAP is a stateful protocol (as opposed to HTTP), having connections torn
51
- down from underneath you is can be difficult to deal with. Several mechanisms
52
+ down from underneath you can be difficult to deal with. Several mechanisms
52
53
have been provided to mitigate this trouble.
53
54
55
+ ### Reconnect
56
+
57
+ You can provide a Boolean option indicating if a reconnect should be tried. For
58
+ more sophisticated control, you can provide an Object with the properties
59
+ ` initialDelay ` (default: ` 100 ` ), ` maxDelay ` (default: ` 10000 ` ) and
60
+ ` failAfter ` (default: ` Infinity ` ).
61
+ After the reconnect you maybe need to [ bind] ( #bind ) again.
62
+
54
63
55
64
## Common patterns
56
65
You can’t perform that action at this time.
0 commit comments