Skip to content

Commit 7748b7c

Browse files
committed
docs: add comment
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 74bef69 commit 7748b7c

File tree

1 file changed

+3
-0
lines changed
  • lib/node_modules/@stdlib/net/disposable-http-server/lib

1 file changed

+3
-0
lines changed

lib/node_modules/@stdlib/net/disposable-http-server/lib/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ function httpServer( options ) {
194194
}
195195
debug( 'Server started.' );
196196
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:
197199
server.on( 'connection', onConnection );
200+
198201
server.once( 'close', onClose );
199202
if ( opts.open ) {
200203
addr = server.address();

0 commit comments

Comments
 (0)