aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_schannel.h
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-10-06 13:59:28 +0200
committerMarc Hoersken <info@marc-hoersken.de>2012-10-06 13:59:28 +0200
commitfbf3560886f4cd172cd9f21c4f93b0446650d4b5 (patch)
treebef63076f1d621267239c79702209e52dc62e455 /lib/curl_schannel.h
parent07593b242296e43c23aee1717bdb84426a6b230a (diff)
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.
Diffstat (limited to 'lib/curl_schannel.h')
-rw-r--r--lib/curl_schannel.h10
1 files changed, 2 insertions, 8 deletions
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