Skip to content

Commit e423d06

Browse files
Reduce to only one handshake timeout
1 parent 93cdd66 commit e423d06

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ public class Connection : IConnection
7070
///<summary>Heartbeat frame for transmission. Reusable across connections.</summary>
7171
public readonly Frame m_heartbeatFrame = new Frame(Constants.FrameHeartbeat, 0, new byte[0]);
7272

73-
///<summary>Timeout used while waiting for AMQP handshaking to
74-
///complete (milliseconds)</summary>
75-
public const int HandshakeTimeout = 10000;
76-
7773
public ManualResetEvent m_appContinuation = new ManualResetEvent(false);
7874
public EventHandler<CallbackExceptionEventArgs> m_callbackException;
7975

@@ -1254,7 +1250,8 @@ protected void StartAndTune()
12541250
m_inConnectionNegotiation = true;
12551251
var connectionStartCell = new BlockingCell();
12561252
m_model0.m_connectionStartCell = connectionStartCell;
1257-
m_frameHandler.Timeout = HandshakeTimeout;
1253+
m_model0.HandshakeContinuationTimeout = m_factory.HandshakeContinuationTimeout;
1254+
m_frameHandler.Timeout = m_factory.HandshakeContinuationTimeout.Milliseconds;
12581255
m_frameHandler.SendHeader();
12591256

12601257
var connectionStart = (ConnectionStartDetails)

0 commit comments

Comments
 (0)