@coclaw/openclaw-coclaw 0.17.5 → 0.17.6
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/package.json
CHANGED
|
@@ -83,11 +83,11 @@ export class RpcSendQueue {
|
|
|
83
83
|
if (this.queueBytes >= MAX_QUEUE_BYTES) {
|
|
84
84
|
this.droppedCount += 1;
|
|
85
85
|
this.droppedBytes += totalBytes;
|
|
86
|
-
|
|
87
|
-
//
|
|
88
|
-
// this.logger.info?.(`[rpc-queue${this.__tagSuffix()}] dropped-payload ${jsonStr}`);
|
|
86
|
+
// 仅状态翻转点打 log(warn + remoteLog 各一次);overflow 持续期间所有 drop 静默累加,
|
|
87
|
+
// 避免 UI 离线 + ICE 失败导致 DC 永远不 drain 时的日志刷屏
|
|
89
88
|
if (!this.queueOverflowActive) {
|
|
90
89
|
this.queueOverflowActive = true;
|
|
90
|
+
this.logger.warn?.(`[rpc-queue${this.__tagSuffix()}] overflow-start queueBytes=${this.queueBytes}`);
|
|
91
91
|
remoteLog(`rpc-queue.overflow-start${this.__tagSuffix()} queueBytes=${this.queueBytes}`);
|
|
92
92
|
}
|
|
93
93
|
return false;
|
|
@@ -173,9 +173,10 @@ export class RpcSendQueue {
|
|
|
173
173
|
}
|
|
174
174
|
this.queue.shift();
|
|
175
175
|
this.queueBytes -= chunk.length;
|
|
176
|
-
// 满 → 未满
|
|
176
|
+
// 满 → 未满 状态转换:打一条带累计数的 log,与 overflow-start 对称
|
|
177
177
|
if (this.queueOverflowActive && this.queueBytes < MAX_QUEUE_BYTES) {
|
|
178
178
|
this.queueOverflowActive = false;
|
|
179
|
+
this.logger.info?.(`[rpc-queue${this.__tagSuffix()}] overflow-end dropped=${this.droppedCount} droppedBytes=${this.droppedBytes}`);
|
|
179
180
|
remoteLog(`rpc-queue.overflow-end${this.__tagSuffix()} dropped=${this.droppedCount} droppedBytes=${this.droppedBytes}`);
|
|
180
181
|
}
|
|
181
182
|
}
|