]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
tls-openssl.c: Add comments
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 5 Mar 2026 07:30:29 +0000 (08:30 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 5 Mar 2026 07:30:29 +0000 (08:30 +0100)
cups/tls-openssl.c

index 28907c9a589327ab1cd39d23f6826dc4dd5d5a2f..250a46f69001031a3138c7cd7ad5b5950a4d6453 100644 (file)
@@ -1723,6 +1723,7 @@ _httpTLSRead(http_t *http,                // I - Connection to server
   if (bytes > 0)
     return (bytes);
 
+  // For now, make difference only for error after which we can retry, EPIPE otherwise...
   if (SSL_get_error(http->tls, bytes) == SSL_ERROR_WANT_READ)
     errno = EAGAIN;
   else
@@ -2068,6 +2069,7 @@ _httpTLSWrite(http_t     *http,           // I - Connection to server
   if (bytes > 0)
     return (bytes);
 
+  // For now, make difference only for error after which we can retry, EPIPE otherwise...
   if (SSL_get_error(http->tls, bytes) == SSL_ERROR_WANT_WRITE)
     errno = EAGAIN;
   else