From c2b01cce5ca4ddab04a6e1978be6281d30a55567 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 30 Oct 2019 09:44:30 +0100 Subject: 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 --- lib/vtls/gtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3