The
LEWS_INCOMING_CONNECTION_BUF_SIZEmacro defines the size of the EWSLite Web Server buffer for receiving HTTP requests.The default value is 4096.
The
LEWS_OUTGOING_CONNECTION_BUF_SIZEmacro defines the size of the EWSLite Web Server buffer for preparing HTTP responses.The default value is 4096.
When the
MCOEWSLITE_USE_STATIC_BUFFERSmacro is defined, EWSLite utilizes two globally defined static buffers for receiving requests and preparing responses. The sizes of these buffers are determined by theLEWS_INCOMING_CONNECTION_BUF_SIZEandLEWS_OUTGOING_CONNECTION_BUF_SIZEconstants, respectively.Conversely, when this macro is not defined, the buffers are allocated within the context of each individual connection.
By default, the
MCOEWSLITE_USE_STATIC_BUFFERSmacro is not defined. Use static buffers only in single-threaded mode.
The
LEWS_MAX_CONNECTION_THREADSmacro defines the number of threads in the connection handling thread pool. The total number of server threads isLEWS_MAX_CONNECTION_THREADS + 1.The default value is 6.
The
MCOEWSLITE_USE_THREADSmacro definition allows using the thread pool for HTTP connection handling. Also, it makes WebSocket functions available. The size of the thread pool is defined byLEWS_MAX_CONNECTION_THREADS.The
MCOEWSLITE_USE_THREADSmacro is defined by default in mcoewslite.h.