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
{{ message }}
This repository was archived by the owner on May 14, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/server.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,10 @@ Known compatible loggers are:
39
39
Set this property to reject connections when the server's connection count gets
40
40
high.
41
41
42
-
### connections (getter only)
42
+
### connections (getter only) - DEPRECATED
43
43
44
-
The number of concurrent connections on the server.
44
+
The number of concurrent connections on the server. This property is deprecated,
45
+
please use server.getConnections() instead.
45
46
46
47
### url
47
48
@@ -96,6 +97,13 @@ This file descriptor must have already had the `bind(2)` and `listen(2)` system
96
97
calls invoked on it. Additionally, it must be set non-blocking; try
97
98
`fcntl(fd, F_SETFL, O_NONBLOCK)`.
98
99
100
+
## Inspecting server state
101
+
102
+
### server.getConnections(callback)
103
+
104
+
The LDAP server API mirrors the [Node.js `server.getConnections` API](https://nodejs.org/dist/latest-v12.x/docs/api/net.html#net_server_getconnections_callback). Callback
105
+
should take two arguments err and count.
106
+
99
107
# Routes
100
108
101
109
The LDAP server API is meant to be the LDAP-equivalent of the express/restify
0 commit comments