<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-02-16 22:33 GMT+04:00 Jonathan Oliver <span dir="ltr"><<a href="mailto:jonathan.s.oliver42@gmail.com" target="_blank">jonathan.s.oliver42@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>The problem is that there is <b>no timeout</b> 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.</div>
<div><br></div><div>The .NET docs also state that the default read/write timeout is <a href="http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.readtimeout(v=vs.110).aspx" target="_blank">set to Infinite by default</a>.</div>
<div><br></div><div>The simple fix is as follows:</div><div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">sslStream.ReadTimeout = connectionTimeout;</span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">sslStream.WriteTimeout=connectionTimout;</span></div></blockquote></div><br>That you for reporting, we will file a bug about it.<br>
<br clear="all"><div><br></div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
</div></div>