Explorar o código

Use GNUTLS_SHUT_WR instead of GNUTLS_SHUT_RDWR

We don't read the response from peer about this.
Tatsuhiro Tsujikawa %!s(int64=14) %!d(string=hai) anos
pai
achega
5703835784
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/SocketCore.cc

+ 1 - 1
src/SocketCore.cc

@@ -562,7 +562,7 @@ void SocketCore::closeConnection()
 #endif // HAVE_OPENSSL
 #ifdef HAVE_LIBGNUTLS
   if(secure_) {
-    gnutls_bye(sslSession_, GNUTLS_SHUT_RDWR);
+    gnutls_bye(sslSession_, GNUTLS_SHUT_WR);
   }
 #endif // HAVE_LIBGNUTLS
   if(sockfd_ != (sock_t) -1) {