Skip to content

Commit bc7e16a

Browse files
committed
tls-openssl.c: Add comments
1 parent ebd5109 commit bc7e16a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cups/tls-openssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,7 @@ _httpTLSRead(http_t *http, // I - Connection to server
17231723
if (bytes > 0)
17241724
return (bytes);
17251725

1726+
// For now, make difference only for error after which we can retry, EPIPE otherwise...
17261727
if (SSL_get_error(http->tls, bytes) == SSL_ERROR_WANT_READ)
17271728
errno = EAGAIN;
17281729
else
@@ -2068,6 +2069,7 @@ _httpTLSWrite(http_t *http, // I - Connection to server
20682069
if (bytes > 0)
20692070
return (bytes);
20702071

2072+
// For now, make difference only for error after which we can retry, EPIPE otherwise...
20712073
if (SSL_get_error(http->tls, bytes) == SSL_ERROR_WANT_WRITE)
20722074
errno = EAGAIN;
20732075
else

0 commit comments

Comments
 (0)