q-koa 13.8.50 → 13.8.52
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/core/app.js +7 -2
- package/package.json +1 -1
package/core/app.js
CHANGED
|
@@ -373,6 +373,11 @@ class APP {
|
|
|
373
373
|
console.log(chalk.green(`version: ${version}`))
|
|
374
374
|
})
|
|
375
375
|
|
|
376
|
+
// keep-alive 超时必须大于负载均衡的空闲连接超时(CLB/ALB 默认 15 秒),
|
|
377
|
+
// 否则 Node 先关闭空闲连接、负载均衡仍复用时会出现偶发 502 / 连接重置
|
|
378
|
+
this.server.keepAliveTimeout = 65000
|
|
379
|
+
this.server.headersTimeout = 66000
|
|
380
|
+
|
|
376
381
|
if (is_dev) {
|
|
377
382
|
if (
|
|
378
383
|
this.app[appName].service.model &&
|
|
@@ -1377,9 +1382,9 @@ class APP {
|
|
|
1377
1382
|
if (!_.isObject(item)) return item
|
|
1378
1383
|
return formatLiteralObj(item)
|
|
1379
1384
|
})
|
|
1380
|
-
_where =
|
|
1385
|
+
_where = formatWhere
|
|
1381
1386
|
} else {
|
|
1382
|
-
_where =
|
|
1387
|
+
_where = where
|
|
1383
1388
|
}
|
|
1384
1389
|
|
|
1385
1390
|
// if (util.isObject(where)) {
|