From 483c140a515d84a22f2f061cebe9bb0d10be5e1c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 12 Jun 2026 17:45:20 +0200 Subject: [PATCH] comment nits 2 --- lib/cf-socket.c | 13 ++++++------- lib/socketpair.c | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/cf-socket.c b/lib/cf-socket.c index bfd3885e77..7e2788dd7f 100644 --- a/lib/cf-socket.c +++ b/lib/cf-socket.c @@ -1547,9 +1547,9 @@ 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. We - therefore treat both error codes the same here */ + /* The socket error may be EWOULDBLOCK or on some systems EAGAIN when + 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 || (sockerr == SOCKEINTR) || (sockerr == SOCKEINPROGRESS) @@ -1606,10 +1606,9 @@ static CURLcode cf_socket_recv(struct Curl_cfilter *cf, struct Curl_easy *data, if(!curlx_sztouz(rv, pnread)) { int sockerr = SOCKERRNO; - - /* errno may be EWOULDBLOCK or on some systems EAGAIN when it returned - due to its inability to send off data without blocking. We therefore - treat both error codes the same here */ + /* The socket error may be EWOULDBLOCK or on some systems EAGAIN when + 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 || (sockerr == SOCKEINTR) diff --git a/lib/socketpair.c b/lib/socketpair.c index 1ac11b42d9..8b31f06f90 100644 --- a/lib/socketpair.c +++ b/lib/socketpair.c @@ -232,9 +232,9 @@ static int wakeup_inet(curl_socket_t socks[2], bool nonblocking) /* Do not block forever */ if(curlx_timediff_ms(curlx_now(), start) > (60 * 1000)) goto error; - /* errno may be EWOULDBLOCK or on some systems EAGAIN when it - returned due to its inability to send off data without - blocking. We therefore treat both error codes the same here */ + /* The socket error may be EWOULDBLOCK or on some systems EAGAIN when + 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 || (sockerr == SOCKEINTR) || (sockerr == SOCKEINPROGRESS)