[rabbitmq-discuss] RabbitMQ .NET Client Can Hang with SSL Connections

Michael Klishin michael.s.klishin at gmail.com
Sun Feb 16 19:09:04 GMT 2014


2014-02-16 22:33 GMT+04:00 Jonathan Oliver <jonathan.s.oliver42 at gmail.com>:

> The problem is that there is *no timeout* value configured for SSL
> connections.  This means that the SSL connection attempt will hang
> indefinitely.  And since the connection doesn't exist yet, there's no way
> for any kind of heartbeat thread to tear things down.
>
> The .NET docs also state that the default read/write timeout is set to
> Infinite by default<http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.readtimeout(v=vs.110).aspx>
> .
>
> The simple fix is as follows:
> sslStream.ReadTimeout = connectionTimeout;
> sslStream.WriteTimeout=connectionTimout;
>

That you for reporting, we will file a bug about it.


-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140216/4f565ef5/attachment.html>


More information about the rabbitmq-discuss mailing list