mirror of
https://github.com/curl/curl.git
synced 2026-04-22 19:32:13 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue