Hi, I have a multithreade application which uses OpenSSL to get contents from HTTPS server (here an IIS server). The HTTPS server requires client side certificate.
My program uses: SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY); so I do not need to handle SSL_ERROR_WANT_WRITE, SSL_ERROR_WANT_READ (even though my code covers these logics). My program calls SSL_set_connect_state(...) to tell its a SSL client, and it uses SSL_connect(...) to connect to the HTTPS server. In most times, my program works without any problem. But every couple of hours (sometimes 2 hours, sometimes 3 or more), SSL_read gives me back SSL_ERROR_SYSCALL error and the detail is: error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure I have no clue on how to avoid this error, as I see no reasons that handshake could fail after the success of SSL_connect(...). Could any of you guys there share some lights on how to solve this problem? We checked the HTTPS server (IIS) settings, and no clue there also. Thanks in advance! Mike _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]