[Mono-dev] Infinite loop in SsllServerStream

Ian Moir mono_list at templetech.com
Fri Sep 23 11:12:42 EDT 2005


Hello

I am trying to track down the cause of an infinite loop I am seeing in 
the class Mono.Security.Protocol.Tls.SslServerStream(). I can easily get 
some threads in my app into infinite loops by making several quick http 
type requests and one or more threads reading the request may end up in 
infinite loops. The loops seem to be in the 
SslServerStream.doHandshake() method, stuck in the following code:

               while (this.context.LastHandshakeMsg != 
HandshakeType.Finished)
               {
                   this.protocol.ReceiveRecord();
               }

I have not found an obvious way to get it out of this loop, such as the 
socket has closed or diconnected. Any socket experts out there that can 
suggest some guidance on this, even with just this short explanation?

I will report this as a bug, and am working on some code to demo this 
bug, but have not got to that point  yet. I will publish some demo code 
as soon as I have it reasonably isolated.

Ian Moir




More information about the Mono-devel-list mailing list