Catch WANT_READ and WANT_WRITE SSL exceptions

SSL_ERROR_WANT_READ and SSL_ERROR_WANT_WRITE could possibly be
thrown from either recv() or send(), so we need to make sure both
are handled.