mirror of https://github.com/aria2/aria2
Use GNUTLS_SHUT_WR instead of GNUTLS_SHUT_RDWR
We don't read the response from peer about this.pull/1/head
parent
6f602e2809
commit
5703835784
|
@ -562,7 +562,7 @@ void SocketCore::closeConnection()
|
||||||
#endif // HAVE_OPENSSL
|
#endif // HAVE_OPENSSL
|
||||||
#ifdef HAVE_LIBGNUTLS
|
#ifdef HAVE_LIBGNUTLS
|
||||||
if(secure_) {
|
if(secure_) {
|
||||||
gnutls_bye(sslSession_, GNUTLS_SHUT_RDWR);
|
gnutls_bye(sslSession_, GNUTLS_SHUT_WR);
|
||||||
}
|
}
|
||||||
#endif // HAVE_LIBGNUTLS
|
#endif // HAVE_LIBGNUTLS
|
||||||
if(sockfd_ != (sock_t) -1) {
|
if(sockfd_ != (sock_t) -1) {
|
||||||
|
|
Loading…
Reference in New Issue