Skip to content

Commit 0e43e87

Browse files
author
Emile Joubert
committed
Add socket timeout message
1 parent f11b369 commit 0e43e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private void Connect(TcpClient socket, AmqpTcpEndpoint endpoint, int timeout)
112112
if (!ar.AsyncWaitHandle.WaitOne(timeout, false))
113113
{
114114
socket.Close();
115-
throw new TimeoutException();
115+
throw new TimeoutException("Connection to " + endpoint + " timed out");
116116
}
117117
socket.EndConnect(ar);
118118
}

0 commit comments

Comments
 (0)