mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-17 10:49:47 +00:00
Change MG_MAX_RECV_BUF_SIZE -> MG_MAX_RECV_SIZE
This commit is contained in:
1 parent
73a5ff1fb6
commit
a88ea776a9
8 files changed
+12
-12
No files matched your search
@@ -23,7 +23,7 @@
|
||||
a partial HTTP message has been received (or a chunk-encoded chunk).
|
||||
Use <code>mg_http_delete_chunk()</code> to release chunk memory.
|
||||
When 0-sized chunk is received, that's the end of the message.
|
||||
Use <code>MG_MAX_RECV_BUF_SIZE</code> build constant to limit
|
||||
Use <code>MG_MAX_RECV_SIZE</code> build constant to limit
|
||||
maximum chunk size on a server side.
|
||||
<br><br>
|
||||
In this example, JavaScript code uses "fetch()" browser API.
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
// ///////////////// IMPORTANT //////////////////////////
|
||||
//
|
||||
// Mongoose has a limit on input buffer, which also limits maximum upload size.
|
||||
// It is controlled by the MG_MAX_RECV_BUF_SIZE constant, which is set by
|
||||
// It is controlled by the MG_MAX_RECV_SIZE constant, which is set by
|
||||
// default to (3 * 1024 * 1024), i.e. 3 megabytes.
|
||||
// Use -DMG_MAX_RECV_BUF_SIZE=NEW_LIMIT to override it.
|
||||
// Use -DMG_MAX_BUF_SIZE=NEW_LIMIT to override it.
|
||||
//
|
||||
// Also, consider changing -DMG_IO_SIZE=SOME_BIG_VALUE to increase IO buffer
|
||||
// increment when reading data.
|
||||
|
||||
Reference in new issue
Block a user