File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1171,6 +1171,7 @@ may run into a 'ECONNRESET' error.
11711171
<
8481
td data-grid-cell-id="diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641-1172-1172-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">11721172``` mjs
11731173import http from ' node:http' ;
1174+ const agent = new http.Agent ({ keepAlive: true });
11741175
11751176// Server has a 5 seconds keep-alive timeout by default
11761177http
@@ -1192,6 +1193,7 @@ setInterval(() => {
11921193
11931194``` cjs
11941195const http = require (' node:http' );
1196+ const agent = new http.Agent ({ keepAlive: true });
11951197
11961198// Server has a 5 seconds keep-alive timeout by default
11971199http
You can’t perform that action at this time.
0 commit comments