提交 9689396a 编写于 作者: A Alex Dima

Enter Unresponsive state if at least 2 request are pending (#58672)

上级 0819493d
......@@ -192,14 +192,12 @@ export class RPCProtocol extends Disposable implements IRPCProtocol {
return;
}
if (Date.now() > this._unresponsiveTime) {
if (this._potentialUnresponsiveRequests.length >= 2 && Date.now() > this._unresponsiveTime) {
// Unresponsive!!
this._setResponsiveState(ResponsiveState.Unresponsive);
} else {
// Not (yet) unresponsive, be sure to check again soon
if (this._potentialUnresponsiveRequests.length > 0) {
this._asyncCheckUresponsive.schedule();
}
this._asyncCheckUresponsive.schedule();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册