mirror of
https://github.com/MopriaAlliance/CUPS-for-Android.git
synced 2025-08-04 03:14:37 +08:00
Applying the gnutls_bye changes applied in MPL
This commit is contained in:
parent
2e35f8e412
commit
face7270f9
@ -1576,7 +1576,9 @@ _httpTLSStop(http_t *http) /* I - Connection to server */
|
||||
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)
|
||||
_cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(errno), 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user