comment cleanups

This commit is contained in:
Viktor Szakats 2026-06-12 18:19:17 +02:00
parent 483c140a51
commit 62b92b22df
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -1548,7 +1548,7 @@ static CURLcode cf_socket_send(struct Curl_cfilter *cf, struct Curl_easy *data,
if(!curlx_sztouz(rv, pnwritten)) {
int sockerr = SOCKERRNO;
/* The socket error may be EWOULDBLOCK or on some systems EAGAIN when
it returned due to its inability to read data without blocking.
it returned due to its inability to send off data without blocking.
We therefore treat both error codes the same here */
if(SOCK_EWOULDBLOCK_EAGAIN(sockerr)
#ifndef USE_WINSOCK
@ -1607,7 +1607,7 @@ static CURLcode cf_socket_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
if(!curlx_sztouz(rv, pnread)) {
int sockerr = SOCKERRNO;
/* The socket error may be EWOULDBLOCK or on some systems EAGAIN when
it returned due to its inability to send off data without blocking.
it returned due to its inability to read data without blocking.
We therefore treat both error codes the same here */
if(SOCK_EWOULDBLOCK_EAGAIN(sockerr)
#ifndef USE_WINSOCK

View file

@ -233,7 +233,7 @@ static int wakeup_inet(curl_socket_t socks[2], bool nonblocking)
if(curlx_timediff_ms(curlx_now(), start) > (60 * 1000))
goto error;
/* The socket error may be EWOULDBLOCK or on some systems EAGAIN when
it returned due to its inability to send off data without blocking.
it returned due to its inability to read data without blocking.
We therefore treat both error codes the same here */
if(SOCK_EWOULDBLOCK_EAGAIN(sockerr)
#ifndef USE_WINSOCK