Use GNUTLS_SHUT_WR instead of GNUTLS_SHUT_RDWR

We don't read the response from peer about this.
pull/1/head
Tatsuhiro Tsujikawa 2011-07-06 22:52:15 +09:00
parent 6f602e2809
commit 5703835784
1 changed files with 1 additions and 1 deletions

View File

@ -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) {