On Wed, Jan 31, 2007, Ian C. Fette wrote:

> 
> I also tried implementing your reply. Before calling SSL_read() etc I'm
> now calling ERR_clear_error(). Unfortunately, I still seem to be getting
> cases where I see SSL_ERROR_SYSCALL and errno is set to EWOULDBLOCK. Do
> you have any other ideas as to what the problem might be? (Or is this
> just behavior that I have to live with?)
> 

Try ERR_print_errors_fp(stderr) when you get that condition to see if the
error queue indicates EWOULDBLOCK or some other error.

If you application is multi threaded make sure the process ID callback is set
to something sensible if the default (getpid on Unix) isn't appropriate.
Otherwise the error queue could get confused.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to