@maiyunnet/kebab 9.7.2 → 9.7.3
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/doc/kebab-rag.md +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/sys/child.js +4 -4
package/doc/kebab-rag.md
CHANGED
|
@@ -1360,7 +1360,7 @@ index/variables/VER.md
|
|
|
1360
1360
|
|
|
1361
1361
|
# Variable: VER
|
|
1362
1362
|
|
|
1363
|
-
> `const` **VER**: `"9.7.
|
|
1363
|
+
> `const` **VER**: `"9.7.3"` = `'9.7.3'`
|
|
1364
1364
|
|
|
1365
1365
|
Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
|
|
1366
1366
|
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
7
7
|
*/
|
|
8
8
|
/** --- 当前系统版本号 --- */
|
|
9
|
-
export const VER = '9.7.
|
|
9
|
+
export const VER = '9.7.3';
|
|
10
10
|
// --- 服务端用的路径 ---
|
|
11
11
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
12
12
|
/** --- /xxx/xxx --- */
|
package/package.json
CHANGED
package/sys/child.js
CHANGED
|
@@ -558,10 +558,10 @@ process.on('message', function (msg) {
|
|
|
558
558
|
case 'stop': {
|
|
559
559
|
// --- 需要停止监听,等待已有连接全部断开,然后关闭线程 ---
|
|
560
560
|
stopping = true;
|
|
561
|
-
httpServer
|
|
562
|
-
http2Server
|
|
561
|
+
httpServer?.close();
|
|
562
|
+
http2Server?.close();
|
|
563
563
|
// --- 立即关闭空闲保活连接(无活跃请求的 keep-alive socket),避免进程长时间等待 ---
|
|
564
|
-
httpServer
|
|
564
|
+
httpServer?.closeIdleConnections();
|
|
565
565
|
clearInterval(hbTimer);
|
|
566
566
|
sMonitor.stop();
|
|
567
567
|
// --- 等待活跃请求全部完成 ---
|
|
@@ -581,7 +581,7 @@ process.on('message', function (msg) {
|
|
|
581
581
|
await lCore.sleep(5_000);
|
|
582
582
|
waiting += 5_000;
|
|
583
583
|
// --- 再次清理已变为空闲的保活连接 ---
|
|
584
|
-
httpServer
|
|
584
|
+
httpServer?.closeIdleConnections();
|
|
585
585
|
if (waiting > 3600_000) {
|
|
586
586
|
break;
|
|
587
587
|
}
|