[Mono-bugs] [Bug 75687][Nor] Changed - SslClientStream.BeginRead() blocks

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 9 16:42:40 EDT 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien at ximian.com.


--- shadow/75687	2005-08-08 14:33:29.000000000 -0400
+++ shadow/75687.tmp.21010	2005-08-09 16:42:40.000000000 -0400
@@ -183,6 +183,23 @@
 ah, I missed the
 	stream = sslStream;
 line, so the last Write didn't made any sense to me.
 I'll run the sample code and find out what's happening.
 Thanks for the sample.
+------- Additional Comments From sebastien at ximian.com  2005-08-09 16:42 -------
+Ok, your program don't block because it doesn't call EndRead (or do a
+wait on the AsyncWaitHandle), i.e. the program ends with a pending
+read operation.
+The SslClientStream deals with 2 streams (the SSL one and the inner
+NetworkStream supplied in the ctor). So what happens is that the inner
+stream is read but has to wait/end before decrypting the data and move
+it to the second stream.
+I should be able to fix this (to get the same behaviour as one stream
+would have) but that will requires to re-test everything (SSL related)
+- a long and (mostly) manual process. I'll try it but don't count on
+seeing a fix for this in SVN soon.
+Thanks for the sample code.

More information about the mono-bugs mailing list