Applying the gnutls_bye changes applied in MPL

This commit is contained in:
noha 2018-12-11 09:11:29 -08:00
parent 2e35f8e412
commit face7270f9

View File

@ -1576,7 +1576,9 @@ _httpTLSStop(http_t *http) /* I - Connection to server */
int error; /* Error code */ int error; /* Error code */
error = gnutls_bye(http->tls, http->mode == _HTTP_MODE_CLIENT ? GNUTLS_SHUT_RDWR : GNUTLS_SHUT_WR); // 12/06/2018 Mopria-notice: Using GNUTLS_SHUT_RDWR causes a 30 seconds timeout
// when the server does not respond with the shut down message
error = gnutls_bye(http->tls, GNUTLS_SHUT_WR);
if (error != GNUTLS_E_SUCCESS) if (error != GNUTLS_E_SUCCESS)
_cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(errno), 0); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(errno), 0);