gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 205/222: gtls: make gnutls_bye() not wait for response on shutdo


From: gnunet
Subject: [gnurl] 205/222: gtls: make gnutls_bye() not wait for response on shutdown
Date: Thu, 07 Nov 2019 00:11:41 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit c2b01cce5ca4ddab04a6e1978be6281d30a55567
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Oct 30 09:44:30 2019 +0100

    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;
   }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]