@nxtedition/lib 17.2.6 → 17.2.7
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 +0 -16
- package/http.js +1 -1
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -686,22 +686,6 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
686
686
|
middleware,
|
|
687
687
|
)
|
|
688
688
|
|
|
689
|
-
if (httpConfig.keepAlive != null) {
|
|
690
|
-
server.keepAliveTimeout = httpConfig.keepAlive
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
if (httpConfig.timeout != null) {
|
|
694
|
-
server.setTimeout(httpConfig.timeout)
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
if (httpConfig.headersTimeout == null) {
|
|
698
|
-
server.headersTimeout = 2 * 60e3
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
if (httpConfig.headersTimeout == null) {
|
|
702
|
-
server.requestTimeout = 0
|
|
703
|
-
}
|
|
704
|
-
|
|
705
689
|
server.listen(port)
|
|
706
690
|
|
|
707
691
|
destroyers.push(() => new Promise((resolve) => server.close(resolve)))
|
package/http.js
CHANGED
|
@@ -216,7 +216,7 @@ export function createServer(options, ctx, middleware) {
|
|
|
216
216
|
(req, res) => middleware(ctx ? { req, res, ...ctx } : { req, res }),
|
|
217
217
|
)
|
|
218
218
|
|
|
219
|
-
server.setTimeout(options.socketTimeout ?? 2 * 60e3)
|
|
219
|
+
server.setTimeout(options.socketTimeout ?? options.timeout ?? 2 * 60e3)
|
|
220
220
|
|
|
221
221
|
if (options?.signal?.aborted) {
|
|
222
222
|
queueMicrotask(() => server.close())
|