mirror of
https://github.com/curl/curl.git
synced 2026-06-14 10:05:36 +03:00
rustls
This commit is contained in:
parent
fcb7a9f4e8
commit
deb40d1bf6
1 changed files with 10 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue