mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
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
This commit is contained in:
parent
8d8b5ec344
commit
c2b01cce5c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user