RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-01 Thread John Unsworth
This is what we do: Create a non-blocking TCP socket. Call SSL_new(), SSL_set_fd(), SSL_connect() Thereafter call SSL_read(). Renegotiates handled by OpenSSL. We have only seen the error very occasionally, the vast majority of calls return SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. The followi

Re: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-01 Thread Viktor Dukhovni
> On May 1, 2019, at 9:47 AM, John Unsworth > wrote: > > Create a non-blocking TCP socket. > Call SSL_new(), SSL_set_fd(), SSL_connect() > Thereafter call SSL_read(). > Renegotiates handled by OpenSSL. Can you be more specific about "Create a non-blocking TCP socket"? That fully sets up the TCP

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-01 Thread John Unsworth
This is what we do: Create a non-blocking TCP socket. Call SSL_new(), SSL_set_fd(), SSL_connect() Thereafter call SSL_read(). Renegotiates handled by OpenSSL. We have only seen the error very occasionally, the vast majority of calls return SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. The followi