mirror of https://github.com/moparisthebest/curl
ifndef check the CURL_MAX_WRITE_SIZE define to allow this value to easier be
changed at build time (from command line or similar)
This commit is contained in:
parent
7f33aae067
commit
36626c4b6e
|
@ -210,9 +210,13 @@ typedef int (*curl_progress_callback)(void *clientp,
|
||||||
double ultotal,
|
double ultotal,
|
||||||
double ulnow);
|
double ulnow);
|
||||||
|
|
||||||
|
#ifndef CURL_MAX_WRITE_SIZE
|
||||||
/* Tests have proven that 20K is a very bad buffer size for uploads on
|
/* Tests have proven that 20K is a very bad buffer size for uploads on
|
||||||
Windows, while 16K for some odd reason performed a lot better. */
|
Windows, while 16K for some odd reason performed a lot better.
|
||||||
|
We do the ifndef check to allow this value to easier be changed at build
|
||||||
|
time for those who feel adventurous. */
|
||||||
#define CURL_MAX_WRITE_SIZE 16384
|
#define CURL_MAX_WRITE_SIZE 16384
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef size_t (*curl_write_callback)(char *buffer,
|
typedef size_t (*curl_write_callback)(char *buffer,
|
||||||
size_t size,
|
size_t size,
|
||||||
|
|
Loading…
Reference in New Issue