@nxtedition/lib 23.3.23 → 23.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +2 -0
- package/http.js +1 -1
- package/package.json +1 -1
- package/trace.js +2 -2
- package/util/template/javascript.js +1 -1
package/app.js
CHANGED
package/http.js
CHANGED
|
@@ -186,7 +186,7 @@ export async function requestMiddleware(ctx, next) {
|
|
|
186
186
|
|
|
187
187
|
// res.destroyed is not properly set by http2 compat so we need to
|
|
188
188
|
// also check res.closed.
|
|
189
|
-
if (!res.headersSent && !res.destroyed && !res.closed) {
|
|
189
|
+
if (!res.headersSent && !res.destroyed && !res.closed && !req.aborted) {
|
|
190
190
|
res.statusCode = statusCode
|
|
191
191
|
|
|
192
192
|
for (const name of res.getHeaderNames()) {
|
package/package.json
CHANGED
package/trace.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { threadId } from 'node:worker_threads'
|
|
2
|
-
import { request,
|
|
2
|
+
import { request, Agent } from '@nxtedition/nxt-undici'
|
|
3
3
|
import fp from 'lodash/fp.js'
|
|
4
4
|
|
|
5
5
|
const maxInt = 2147483647
|
|
@@ -26,7 +26,7 @@ export function makeTrace({
|
|
|
26
26
|
const flushInterval = setInterval(flushTraces, 10e3)
|
|
27
27
|
|
|
28
28
|
url = Array.isArray(url) ? url[0] : url
|
|
29
|
-
const client = new
|
|
29
|
+
const client = new Agent({
|
|
30
30
|
keepAliveTimeout: 10 * 60e3,
|
|
31
31
|
pipelining: 4,
|
|
32
32
|
connections: 4,
|