Skip to content

Commit 1ca2456

Browse files
committed
fix merge conflict
1 parent 27a381c commit 1ca2456

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/StackExchange.Redis/PhysicalConnection.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -781,15 +781,16 @@ internal void OnBridgeHeartbeat(out int asyncTimeoutDetected, out int syncTimeou
781781
}
782782
else
783783
{
784-
// Only count how many sync timeouts we detect here.
785-
// The actual timeout is handled in ConnectionMultiplexer.ExecuteSyncImpl().
784+
// Only count how many sync timeouts we detect here (do not poke them;
785+
// the actual timeout is handled in ConnectionMultiplexer.ExecuteSyncImpl)
786786
syncTimeoutDetected++;
787-
}
788-
else if (msg.IsHandshakeCompletion)
789-
{
790-
// Critical handshake validation timed out; note that this doesn't have a result-box,
791-
// so doesn't get timed out via the above.
792-
Shutdown(ConnectionFailureType.UnableToConnect);
787+
788+
if (msg.IsHandshakeCompletion)
789+
{
790+
// Critical handshake validation timed out; note that this doesn't have a result-box,
791+
// so doesn't get timed out via the async path above.
792+
Shutdown(ConnectionFailureType.UnableToConnect);
793+
}
793794
}
794795
}
795796
else

0 commit comments

Comments
 (0)