On Sun, Apr 22, 2012, Stphane Charette wrote:

> I joined the OpenSSL mailing list a couple of weeks ago with the same
> question.  I didn't get a reply at the time, so I'm not sure if I did it
> correctly.  The "solution" I discovered works on Windows and Linux, but
> doesn't work on Mac, iPhone, or iPad.
> 
> Here is the sample code I wrote to show how to do session re-use on Linux
> and Windows:
> 
> http://charette.no-ip.com:81/asio-openssl/
> 

If SSL_connect (and many other calls) doesn't return 1 this doesn't
necessarily indicate an error. You need to check the return value of
SSL_get_error() and if necessary retry the operation. See the manual pages for
more details.

You will normally get this happening with non-blocking I/O but it can also
occur during blocking I/O too.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to