From: Adam Dickmeiss Date: Thu, 18 Apr 2013 12:51:17 +0000 (+0200) Subject: Fix problem with cs_close hang/wait in SSL mode YAZ-652 X-Git-Tag: v4.2.55~5 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=4b0e4f2ebac2519c2e8a2034cb200dcd5bf0e532 Fix problem with cs_close hang/wait in SSL mode YAZ-652 Invoke gnutls_bye differently in tcpip_close --- diff --git a/src/tcpip.c b/src/tcpip.c index 32b1ec1..dcfec86 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -1366,7 +1366,7 @@ void tcpip_close(COMSTACK h) { #if HAVE_GNUTLS_H if (sp->session) - gnutls_bye(sp->session, GNUTLS_SHUT_RDWR); + gnutls_bye(sp->session, GNUTLS_SHUT_WR); #elif HAVE_OPENSSL_SSL_H if (sp->ssl) {