mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 03:28:27 +00:00
Merge commit '6a9c00c09d2bc50c0ea64ba092b2f4afc46aa978'
* commit '6a9c00c09d2bc50c0ea64ba092b2f4afc46aa978': tls_openssl: Fix checks for SSL_ERROR_WANT_WRITE in nonblocking operation Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
f3881c04e9
@ -119,7 +119,7 @@ static int print_tls_error(URLContext *h, int ret)
|
||||
TLSContext *c = h->priv_data;
|
||||
if (h->flags & AVIO_FLAG_NONBLOCK) {
|
||||
int err = SSL_get_error(c->ssl, ret);
|
||||
if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_READ)
|
||||
if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE)
|
||||
return AVERROR(EAGAIN);
|
||||
}
|
||||
av_log(h, AV_LOG_ERROR, "%s\n", ERR_error_string(ERR_get_error(), NULL));
|
||||
|
Loading…
Reference in New Issue
Block a user