This commit is contained in:
Viktor Szakats 2026-06-08 01:40:06 +02:00
parent fcb7a9f4e8
commit deb40d1bf6
No known key found for this signature in database

View file

@ -160,7 +160,11 @@ static ssize_t tls_recv_more(struct Curl_cfilter *cf,
io_ctx.data = data;
io_error = rustls_connection_read_tls(backend->conn, read_cb, &io_ctx,
&tls_bytes_read);
if(io_error == EAGAIN || io_error == EWOULDBLOCK) {
if(io_error == EWOULDBLOCK
#if EAGAIN != EWOULDBLOCK
|| io_error == EAGAIN
#endif
) {
*err = CURLE_AGAIN;
return -1;
}
@ -270,7 +274,11 @@ static CURLcode cr_flush_out(struct Curl_cfilter *cf, struct Curl_easy *data,
while(rustls_connection_wants_write(rconn)) {
io_error = rustls_connection_write_tls(rconn, write_cb, &io_ctx,
&tlswritten);
if(io_error == EAGAIN || io_error == EWOULDBLOCK) {
if(io_error == EWOULDBLOCK
#if EAGAIN != EWOULDBLOCK
|| io_error == EAGAIN
#endif
) {
CURL_TRC_CF(data, cf, "cf_send: EAGAIN after %zu bytes",
tlswritten_total);
return CURLE_AGAIN;