summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-10-30 09:44:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-10-30 09:44:30 +0100
commit3c238fc569f9d858d99bcd817c6bfefc10b4264b (patch)
tree67bae66d33ddc9c4760088e61c9b73cd245e35ac
parent8d8b5ec3444ae2ae7d20790bcf2e1a96b5819645 (diff)
downloadcurl-bagder/gtls-shutdown-hang.tar.gz
gtls: make gnutls_bye() not wait for response on shutdownbagder/gtls-shutdown-hang
... as it can make it wait there for a long time for no good purpose. Patched-by: Jay Satiro Reported-by: Bylon2 on github Adviced-by: Nikos Mavrogiannopoulos Fixes #4487
-rw-r--r--lib/vtls/gtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index 0a83f35af..3737d7c68 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -1608,7 +1608,7 @@ static ssize_t gtls_send(struct connectdata *conn,
static void close_one(struct ssl_connect_data *connssl)
{
if(BACKEND->session) {
- gnutls_bye(BACKEND->session, GNUTLS_SHUT_RDWR);
+ gnutls_bye(BACKEND->session, GNUTLS_SHUT_WR);
gnutls_deinit(BACKEND->session);
BACKEND->session = NULL;
}