Asad, Check your sockets ALWAYS before reading or writing. a bit of "seek()" code should fix this.
SSL fires extra read and write events (asyc sockets win32) that are actually handled internally by the SSL protocols. You must check for readability/writability before attempting to get data from the socket, also be aware that connections can "stall" (due to this anomaly) and must be flagged as such, to retry the (especially SSL_write's) later. Have fun! Pj. ----- Original Message ----- From: "Asad Ali" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 8:19 AM Subject: SSL_read() fails for IE 6.0 ? > > Hi, > > I am new to OpenSSL and am running into a strange behavior > in my web server application. The web server uses OpenSSL library > from 0.9.6g distribution. When the web server is accessed via > Netscape 4.76 browser, it works fine. However, the same URL > fails when using IE 6.0.26. The problem happens because the > first call to SSL_read(), after handshake, returns zero bytes. > I am, therefore, unable to read the GET message from IE. > > Have anyone seen this kind of behavior before. I am using > Cygwin on Windows 2000 system. > > thanks, > --- asad > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]