1198
&& timeSinceLastTimeout >= ProtocolConstants.TimeoutTime
1199
) {
1200
>
// But this might be caused by the event loop being busy and failing to read messages
ipc.net.ts
1201
>
if (!this._loadEstimator.hasHighLoad()) {
1202
>
this._lastSocketTimeoutTime = now;
1203
>
const unacknowledgedMsgCount = this._outgoingUnackMsg.length();
1204
>
const oldestUnacknowledgedMsg = this._outgoingUnackMsg.peek();
1205
>
this._onSocketTimeout.fire({
1206
>
reason: SocketTimeoutReason.KEEP_ALIVE,
1207
>
unacknowledgedMsgCount,
1208
>
timeSinceOldestUnacknowledgedMsg: oldestUnacknowledgedMsg ? now - oldestUnacknowledgedMsg.writtenTime : undefined,
1209
>
timeSinceLastReceivedSomeData
1210
>
});
1211
>
}
1212
>
}
1213
}
1214