[Mono-list] SslClientStream: nonblocking read?

Carlos Guzmán Álvarez carlosga@telefonica.net
Thu, 02 Dec 2004 15:28:15 +0100


>I think this is already the case. The only "blocking" part is when the
>session is initialized between the client and server.
>Maybe Carlos could add more detailled informations...
It could be blocked at any time if a record is not full readed.

And the SslClientStream has one place that nees review,
it's in the RecordProtocol.ReceiveRecord method:

            int type = this.innerStream.ReadByte();
            if (type == -1)
                return null;

This shouldn't block the connection, in teory, in the practice
it's being blocked if i remember well.

Best regards

Carlos Guzmán Álvarez

"In the end there can be only one" (Highlander)