Skip to content

Commit 71cd5cd

Browse files
Report timeouts on connection establishment (connection.start) as IOExceptions
1 parent d8daaa2 commit 71cd5cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/client/RabbitMQ.Client/src/client/impl/ConnectionBase.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,9 +1055,7 @@ protected void StartAndTune()
10551055
connectionStartCell.Value;
10561056

10571057
if (connectionStart == null){
1058-
throw new ProtocolVersionMismatchException(Protocol.MajorVersion,
1059-
Protocol.MinorVersion,
1060-
-1, -1);
1058+
throw new IOException("connection.start was never received, likely due to a network timeout");
10611059
}
10621060

10631061
ServerProperties = connectionStart.m_serverProperties;

0 commit comments

Comments
 (0)