MG_ARCH_RTX nits

This commit is contained in:
Sergey Lyubka committed 2022-05-12 15:07:02 +01:00
1 parent 5458252e4a
commit 0294603dfc
6 files changed
+15 -4

No files matched your search

+5
View File
@@ -244,6 +244,11 @@ struct mg_connection {
mg_http_printf_chunk(c, "%s", "bar");
mg_http_printf_chunk(c, ""); // Don't forget the last empty chunk
```
- On embedded environment, make sure that serving task has enough stack:
give it 2k for simple RESTful serving, or 4-8k for complex dynamic/static
serving. In certain environments, it is necessary to adjust heap size, too.
By default, IO buffer allocation size `MG_IO_SIZE` is 2048: change it to 512
to trim run-time per-connection memory consumption.
## Build options