Fix problem with cs_close hang/wait in SSL mode YAZ-652
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 18 Apr 2013 12:51:17 +0000 (14:51 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 18 Apr 2013 12:52:41 +0000 (14:52 +0200)
Invoke gnutls_bye differently in tcpip_close

src/tcpip.c

index 32b1ec1..dcfec86 100644 (file)
@@ -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)
         {