diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-03 11:05:09 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-03 11:05:09 +0000 |
commit | 033263e6962d23e8401df5a3c1a8f0249ce06ebe (patch) | |
tree | 0fb372b9d649ce772d1f97479f99b96c4104c77a | |
parent | eee5c71affa2b158b707d5c46eeef25edcce2a67 (diff) |
added the new upload_bufsize to the connectdata struct
-rw-r--r-- | lib/urldata.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 45ff75c02..f255fbff3 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -99,6 +99,11 @@ /* Download buffer size, keep it fairly big for speed reasons */ #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 of need. */ #define HEADERSIZE 256 @@ -175,6 +180,9 @@ struct connectdata { long bytecount; 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 be protocol dependent */ CURLcode (*curl_do)(struct connectdata *connect); |