Skip to content

Commit a9ee96a

Browse files
authored
change default log for ProcessIncomingFrames thread (#275)
* In a pressure system, the process frame could take longer to close. * Increase a bit the wait time and change the log from Error to Warning because it is not an error, just a warning. Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent b6fa21e commit a9ee96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RabbitMQ.Stream.Client/Connection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ public void Dispose()
222222
writer.Complete();
223223
reader.Complete();
224224
socket.Dispose();
225-
if (!_incomingFramesTask.Wait(Consts.ShortWait))
225+
if (!_incomingFramesTask.Wait(Consts.MidWait))
226226
{
227-
_logger?.LogError("frame reader task did not exit in {ShortWait}", Consts.ShortWait);
227+
_logger?.LogWarning("ProcessIncomingFrames reader task did not exit in {MidWait}", Consts.MidWait);
228228
}
229229
}
230230
finally

0 commit comments

Comments
 (0)