On 14/11/17 10:44, mahesh gs wrote: > case SSL_ERROR_SYSCALL: > > if (EWOULDBLOCK == errno || EAGAIN == errno) > { > /* Nothing to do, retry to connect again */ > } This doesn't look right. If SSL_connect() fails due to an NBIO event then you should get SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE back. If you get SSL_ERROR_SYSCALL then something bad happened and you should not retry. Could you add some logging here? I'm wondering whether you are ending up here but missing it and looping around again. Matt -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users