From fbf3560886f4cd172cd9f21c4f93b0446650d4b5 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sat, 6 Oct 2012 13:59:28 +0200 Subject: curl_schannel: Removed buffer limit and optimized buffer strategy Since there are servers that seem to return very big encrypted data packages, we need to be able to handle those without having an internal size limit. To avoid the buffer growing to fast to early the initial size was decreased and the minimum free space in the buffer was decreased as well. --- lib/curl_schannel.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/curl_schannel.h') diff --git a/lib/curl_schannel.h b/lib/curl_schannel.h index 909ed1857..37126ac7d 100644 --- a/lib/curl_schannel.h +++ b/lib/curl_schannel.h @@ -93,14 +93,8 @@ #endif -#ifdef BUFSIZE -#define CURL_SCHANNEL_BUFFER_INIT_SIZE BUFSIZE -#else -#define CURL_SCHANNEL_BUFFER_INIT_SIZE 4096 -#endif - -#define CURL_SCHANNEL_BUFFER_MIN_SIZE CURL_SCHANNEL_BUFFER_INIT_SIZE / 2 -#define CURL_SCHANNEL_BUFFER_MAX_SIZE CURL_SCHANNEL_BUFFER_INIT_SIZE * 128 +#define CURL_SCHANNEL_BUFFER_INIT_SIZE 4096 +#define CURL_SCHANNEL_BUFFER_FREE_SIZE 1024 #define CURL_SCHANNEL_BUFFER_STEP_FACTOR 2 -- cgit v1.2.3