test(batch16): resolve route slow-consumer recover status with evidence

This commit is contained in:
Joseph Doherty
2026-02-28 19:01:57 -05:00
parent a0b0b45f5e
commit 1849780369
3 changed files with 30 additions and 0 deletions

View File

@@ -1491,6 +1491,7 @@ public sealed partial class ClientConnection
return false;
Flags = Flags.Set(ClientFlags.FlushOutbound);
bool gotWriteTimeout = false;
try
{
if (_nc is null || Server is null || OutPb == 0)
@@ -1515,6 +1516,7 @@ public sealed partial class ClientConnection
(se.SocketErrorCode == SocketError.TimedOut ||
se.SocketErrorCode == SocketError.WouldBlock))
{
gotWriteTimeout = true;
if (HandleWriteTimeout(written, attempted, OutWnb.Count))
return true;
}
@@ -1532,6 +1534,9 @@ public sealed partial class ClientConnection
OutWnb.Clear();
}
if (!gotWriteTimeout && Flags.IsSet(ClientFlags.IsSlowConsumer))
Flags = Flags.Clear(ClientFlags.IsSlowConsumer);
return true;
}
finally