From 62b92b22dfdc8288895cd61a0306749f56ad91f1 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 12 Jun 2026 18:19:17 +0200 Subject: [PATCH] comment cleanups --- lib/cf-socket.c | 4 ++-- lib/socketpair.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cf-socket.c b/lib/cf-socket.c index 7e2788dd7f..89bbd7b762 100644 --- a/lib/cf-socket.c +++ b/lib/cf-socket.c @@ -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 diff --git a/lib/socketpair.c b/lib/socketpair.c index 8b31f06f90..be71e2a8e7 100644 --- a/lib/socketpair.c +++ b/lib/socketpair.c @@ -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