summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a5e152)
raw | patch | inline | side by side (parent: 9a5e152)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 26 Sep 2006 18:05:21 +0000 (20:05 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 26 Sep 2006 18:05:21 +0000 (20:05 +0200) |
Also, make this limit easier to configure.
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 156ad5dc905d757d2fd2fd05f97c1b5a8e748633..530481be3f802b88bb4582a14dd9aef84612eef5 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
#if HAVE_LIBCURL
static CURL *curl = NULL;
-static char apache_buffer[4096];
+#define ABUFFER_SIZE 16384
+static char apache_buffer[ABUFFER_SIZE];
static int apache_buffer_len = 0;
static char apache_curl_error[CURL_ERROR_SIZE];
#endif /* HAVE_LIBCURL */
{
size_t len = size * nmemb;
- if ((apache_buffer_len + len) >= 4096)
+ if ((apache_buffer_len + len) >= ABUFFER_SIZE)
{
- len = 4095 - apache_buffer_len;
+ len = (ABUFFER_SIZE - 1) - apache_buffer_len;
}
if (len <= 0)