From 4b0e4f2ebac2519c2e8a2034cb200dcd5bf0e532 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 18 Apr 2013 14:51:17 +0200 Subject: [PATCH] Fix problem with cs_close hang/wait in SSL mode YAZ-652 Invoke gnutls_bye differently in tcpip_close --- src/tcpip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.7.10.4