Skip to content

Commit 0aad5ad

Browse files
authored
tls-gnutls.c: Revert the option change in gnutls_bye
Revert to the code from PR #365, because some TLS 1.2 implementations (e.g. Windows Server 2022) do not follow the standard properly, and sticking to standard would cause 20s-30s delays in printing over TLS. With this change, both our TLS implementations behave the same - OpenSSL uses this option by default and it is not possible to change it, while GNUTLS provides this option to configure the closing behavior.
2 parents 869415f + 17b176b commit 0aad5ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cups/tls-gnutls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ _httpTLSStop(http_t *http) // I - Connection to server
19921992
int error; // Error code
19931993

19941994

1995-
error = gnutls_bye(http->tls, http->mode == _HTTP_MODE_CLIENT ? GNUTLS_SHUT_RDWR : GNUTLS_SHUT_WR);
1995+
error = gnutls_bye(http->tls, GNUTLS_SHUT_WR);
19961996
if (error != GNUTLS_E_SUCCESS)
19971997
_cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(errno), 0);
19981998

0 commit comments

Comments
 (0)