You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: src/ServiceStack.Redis/Pipeline/RedisAllPurposePipeline.cs
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,24 @@ public void Flush()
35
35
{
36
36
// flush send buffers
37
37
RedisClient.FlushAndResetSendBuffer();
38
-
39
-
//receive expected results
40
-
foreach(varqueuedCommandinQueuedCommands)
38
+
39
+
try
40
+
{
41
+
//receive expected results
42
+
foreach(varqueuedCommandinQueuedCommands)
43
+
{
44
+
queuedCommand.ProcessResult();
45
+
}
46
+
}
47
+
catch(Exception)
41
48
{
42
-
queuedCommand.ProcessResult();
49
+
// The connection cannot be reused anymore. All queued commands have been sent to redis. Even if a new command is executed, the next response read from the
50
+
// network stream can be the response of one of the queued commands, depending on when the exception occurred. This response would be invalid for the new command.
0 commit comments