aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-10-30 09:44:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-10-31 09:10:50 +0100
commitc2b01cce5ca4ddab04a6e1978be6281d30a55567 (patch)
tree67bae66d33ddc9c4760088e61c9b73cd245e35ac
parent8d8b5ec3444ae2ae7d20790bcf2e1a96b5819645 (diff)
gtls: make gnutls_bye() not wait for response on shutdown
... 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 Closes #4541
-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;
}