added the new upload_bufsize to the connectdata struct
This commit is contained in:
parent
eee5c71aff
commit
033263e696
@ -99,6 +99,11 @@
|
|||||||
/* Download buffer size, keep it fairly big for speed reasons */
|
/* Download buffer size, keep it fairly big for speed reasons */
|
||||||
#define BUFSIZE (1024*50)
|
#define BUFSIZE (1024*50)
|
||||||
|
|
||||||
|
/* Upload buffer size, keep it smallish to get faster progress meter
|
||||||
|
updates. This should probably become dynamic and adjust to the upload
|
||||||
|
speed. */
|
||||||
|
#define UPLOAD_BUFSIZE (1024*2)
|
||||||
|
|
||||||
/* Initial size of the buffer to store headers in, it'll be enlarged in case
|
/* Initial size of the buffer to store headers in, it'll be enlarged in case
|
||||||
of need. */
|
of need. */
|
||||||
#define HEADERSIZE 256
|
#define HEADERSIZE 256
|
||||||
@ -175,6 +180,9 @@ struct connectdata {
|
|||||||
long bytecount;
|
long bytecount;
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
|
|
||||||
|
long upload_bufsize; /* adjust as you see fit, never bigger than BUFSIZE
|
||||||
|
never smaller than UPLOAD_BUFSIZE */
|
||||||
|
|
||||||
/* These two functions MUST be set by the curl_connect() function to be
|
/* These two functions MUST be set by the curl_connect() function to be
|
||||||
be protocol dependent */
|
be protocol dependent */
|
||||||
CURLcode (*curl_do)(struct connectdata *connect);
|
CURLcode (*curl_do)(struct connectdata *connect);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user