[FFmpeg-devel] [PATCH] TLS OPENSSL SSL_get_error

Mirko Puliafito mirko.puliafito at gmail.com
Wed Aug 28 13:53:22 CEST 2013


Sorry,

the specific case is SSL_ERROR_SYSCALL with errno EAGAIN. The patch could
be - line 85:

ret = SSL_get_error(c->ssl, ret);
 if (ret == SSL_ERROR_WANT_READ) {
p.events = POLLIN;
} else if (ret == SSL_ERROR_WANT_WRITE) {
 p.events = POLLOUT;
} else {
if(errno == EAGAIN)
 return AVERROR(EAGAIN);
av_log(h, AV_LOG_ERROR, "%s\n", ERR_error_string(ERR_get_error(), NULL));
 return AVERROR(EIO);
}

What do you think?


2013/8/28 Mirko Puliafito <mirko.puliafito at gmail.com>

> do_tls_poll
> with openssl only covers SSL_ERROR_WANT_READ and SSL_ERROR_WANT_WRITE
> errors returning EIO other cases.
>
> I'm figuring out some errors like SSL_ERROR_SSL can be recovered
> returning EAGAIN.
>
> What do you think?
>


More information about the ffmpeg-devel mailing list