Change MG_MAX_RECV_BUF_SIZE -> MG_MAX_RECV_SIZE

This commit is contained in:
Sergey Lyubka committed 2022-06-02 13:50:44 +01:00
1 parent 73a5ff1fb6
commit a88ea776a9
8 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -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.
+2 -2
View File
@@ -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.