[Mono-dev] Infinite loop in SsllServerStream

Sebastien Pouliot sebastien.pouliot at gmail.com
Fri Sep 23 11:32:45 EDT 2005

Hello Ian,

On Fri, 2005-23-09 at 09:12 -0600, Ian Moir wrote:
> 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();
>                }

Which version of Mono are you using ?

There's been major changes in 1.1.9 so debugging this issue with earlier
version of Mono won't help much.

> 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.

Thanks :)

Sebastien Pouliot
email: sebastien at ximian.com
blog: http://pages.infinit.net/ctech/

More information about the Mono-devel-list mailing list