From: Nikos Mavrogiannopoulos Date: Fri, 20 Aug 2010 17:05:53 +0000 (+0200) Subject: By default lowat is set to zero. X-Git-Tag: gnutls_2_11_3~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa5d64e9992c683bf50b92a9088adaf545a2e5a0;p=thirdparty%2Fgnutls.git By default lowat is set to zero. --- diff --git a/NEWS b/NEWS index 415664b96d..3009b73181 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,10 @@ See the end for copying conditions. * Version 2.11.1 (unreleased) +** libgnutls: by default lowat level has been set to zero to avoid unnecessary +system calls. Applications that depended on it being 1 should explicitly call +gnutls_transport_set_lowat(). + ** libgnutls: Nettle is the default crypto back end. Use --with-libgcrypt to use the libgcrypt back end. diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 1475951f1a..6d3ef8aed5 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -103,7 +103,7 @@ typedef struct #define INITIAL_RECV_BUFFER_SIZE 256 /* the default for TCP */ -#define DEFAULT_LOWAT 1 +#define DEFAULT_LOWAT 0 /* expire time for resuming sessions */ #define DEFAULT_EXPIRE_TIME 3600