Note on UDP

This commit is contained in:
cpq 2020-12-17 11:19:13 +00:00
parent d1fa7b88e0
commit 2252a74cd7

View File

@ -227,6 +227,10 @@ Here is a list of build constants and their default values:
|`MG_MAX_RECV_BUF_SIZE` | (3 * 1024 * 1024) | Maximum recv buffer size |
|`MG_MAX_HTTP_HEADERS` | 40 | Maximum number of HTTP headers |
NOTE: `MG_IO_SIZE` controls the maximum UDP message size, see
https://github.com/cesanta/mongoose/issues/907 for details. If application
uses large UDP messages, increase the `MG_IO_SIZE` limit accordingly.
## Minimal HTTP server
This example is a simple static HTTP server that serves current directory: