From: Nikos Mavrogiannopoulos Date: Sun, 16 May 2010 11:54:05 +0000 (+0200) Subject: Only send termination request to avoid stalling on servers that do not reply. X-Git-Tag: gnutls_2_11_3~294 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4ba092ab2aba436c51d8daba689afcdb0e3f517;p=thirdparty%2Fgnutls.git Only send termination request to avoid stalling on servers that do not reply. --- diff --git a/src/cli.c b/src/cli.c index e256da22b3..b686399e6c 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1364,7 +1364,7 @@ socket_bye (socket_st * socket) if (socket->secure) { do - ret = gnutls_bye (socket->session, GNUTLS_SHUT_RDWR); + ret = gnutls_bye (socket->session, GNUTLS_SHUT_WR); while (ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN); if (ret < 0) fprintf (stderr, "*** gnutls_bye() error: %s\n",