From: Daniel Stenberg Date: Wed, 30 Oct 2019 08:44:30 +0000 (+0100) Subject: gtls: make gnutls_bye() not wait for response on shutdown X-Git-Tag: curl-7_67_0~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2b01cce5ca4ddab04a6e1978be6281d30a55567;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 0a83f35afd..3737d7c685 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; }