]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl.h: allow up to 10M buffer size
authorDaniel Stenberg <daniel@haxx.se>
Sat, 7 Jan 2023 15:03:40 +0000 (16:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 8 Jan 2023 19:54:48 +0000 (20:54 +0100)
Bump the limit from 512K. There might be reasons for applications using
h3 to set larger buffers and there is no strong reason for curl to have
a very small maximum.

Ref: https://curl.se/mail/lib-2023-01/0026.html

Closes #10256

docs/libcurl/opts/CURLOPT_BUFFERSIZE.3
include/curl/curl.h

index f96ac9beca406159c3933df15fb9455ac153b6c0..7e6a19a0793e9a90b0abe54a867bdf9f9be0cab6 100644 (file)
@@ -41,11 +41,13 @@ This is just treated as a request, not an order. You cannot be guaranteed to
 actually get the given size.
 
 This buffer size is by default \fICURL_MAX_WRITE_SIZE\fP (16kB). The maximum
-buffer size allowed to be set is \fICURL_MAX_READ_SIZE\fP (512kB). The minimum
+buffer size allowed to be set is \fICURL_MAX_READ_SIZE\fP (10MB). The minimum
 buffer size allowed to be set is 1024.
 
 DO NOT set this option on a handle that is currently used for an active
 transfer as that may lead to unintended consequences.
+
+The maximum size was 512kB until 7.88.0.
 .SH DEFAULT
 CURL_MAX_WRITE_SIZE (16kB)
 .SH PROTOCOLS
index fb6d409819a0c14523a01b11e883a940af9ee5da..c599b4d3fc47352245a84e001af436a839147555 100644 (file)
@@ -248,7 +248,7 @@ typedef int (*curl_xferinfo_callback)(void *clientp,
 
 #ifndef CURL_MAX_READ_SIZE
   /* The maximum receive buffer size configurable via CURLOPT_BUFFERSIZE. */
-#define CURL_MAX_READ_SIZE 524288
+#define CURL_MAX_READ_SIZE (10*1024*1024)
 #endif
 
 #ifndef CURL_MAX_WRITE_SIZE