ITS#6673 GnuTLS hangs if you tell it to shut the read direction. Just

shut the write direction; it will all be irrelevant since the socket
will be closed immediately after.
This commit is contained in:
Howard Chu 2010-10-16 12:11:11 +00:00
parent 845bf30c5b
commit abe4a5f83b

View File

@ -967,7 +967,7 @@ tlsg_sb_close( Sockbuf_IO_Desc *sbiod )
assert( sbiod->sbiod_pvt != NULL );
p = (struct tls_data *)sbiod->sbiod_pvt;
gnutls_bye ( p->session->session, GNUTLS_SHUT_RDWR );
gnutls_bye ( p->session->session, GNUTLS_SHUT_WR );
return 0;
}