mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:03:32 +03:00
shorten name
This commit is contained in:
parent
62b92b22df
commit
4da0f86d20
7 changed files with 24 additions and 25 deletions
|
|
@ -46,9 +46,9 @@
|
|||
#endif
|
||||
|
||||
#if EAGAIN != EWOULDBLOCK
|
||||
#define RAW_EWOULDBLOCK_EAGAIN(e) ((e) == EWOULDBLOCK || (e) == EAGAIN)
|
||||
#define RAW_EAGAIN(e) ((e) == EWOULDBLOCK || (e) == EAGAIN)
|
||||
#else
|
||||
#define RAW_EWOULDBLOCK_EAGAIN(e) ((e) == EWOULDBLOCK)
|
||||
#define RAW_EAGAIN(e) ((e) == EWOULDBLOCK)
|
||||
#endif
|
||||
|
||||
struct rustls_ssl_backend_data {
|
||||
|
|
@ -166,7 +166,7 @@ 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(RAW_EWOULDBLOCK_EAGAIN(io_error)) {
|
||||
if(RAW_EAGAIN(io_error)) {
|
||||
*err = CURLE_AGAIN;
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -276,7 +276,7 @@ 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(RAW_EWOULDBLOCK_EAGAIN(io_error)) {
|
||||
if(RAW_EAGAIN(io_error)) {
|
||||
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