Make MG_CTL_MSG_MESSAGE_SIZE overridable

CL: Make MG_CTL_MSG_MESSAGE_SIZE overridable

Fix https://github.com/cesanta/mongoose/pull/987

PUBLISHED_FROM=b0a7c67297b98f616c9eadcd3c34b8747939c918
This commit is contained in:
Бобби authored and Cesanta Bot committed 2018-12-07 10:04:00 +00:00
1 parent 9a70abef24
commit c198d2e5f1
5 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -16,5 +16,5 @@ that can be, and must be, called from a different (non-IO) thread.
`func` callback function will be called by the IO thread for each
connection. When called, the event will be `MG_EV_POLL`, and a message will
be passed as the `ev_data` pointer. Maximum message size is capped
by `MG_CTL_MSG_MESSAGE_SIZE` which is set to 8192 bytes.
by `MG_CTL_MSG_MESSAGE_SIZE` which is set to 8192 bytes by default.