Home  Contents

httpd:setMaxMemory

Httpd Core4 Lua Event System

SYNOPSIS

httpd:setMaxMemory(bytes)

DESCRIPTION

Sets the memory usage limit for the web server. When the server has reached that limit, further requests will fail.

The default value is 1MB. This is enough to run the most typical requests. It is not enough if remote firmware update is required. In that case set the value to the size of the largest firmware file you expect to process and add another MB for good measure.