We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74bef69 commit 7748b7cCopy full SHA for 7748b7c
lib/node_modules/@stdlib/net/disposable-http-server/lib/main.js
@@ -194,7 +194,10 @@ function httpServer( options ) {
194
}
195
debug( 'Server started.' );
196
server = _server;
197
+
198
+ // Track connections so that we can perform clean-up upon closing the server of any persistent TCP connections which are still hanging around:
199
server.on( 'connection', onConnection );
200
201
server.once( 'close', onClose );
202
if ( opts.open ) {
203
addr = server.address();
0 commit comments