mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-26 05:09:19 +00:00
feat(esp_http_server): Make HTTP(S)_SERVER_EVENT events optional
Make it possible to disable http(s) server events. This improves performance of the server, as http server creates events on every signle read or write to the socket.
This commit is contained in:
@@ -6,8 +6,18 @@ menu "ESP HTTPS server"
|
||||
help
|
||||
Enable ESP HTTPS server component
|
||||
|
||||
config ESP_HTTPS_SERVER_EVENTS
|
||||
bool "Enable ESP_HTTPS_SERVER_EVENT event type"
|
||||
depends on ESP_HTTPS_SERVER_ENABLE
|
||||
default y
|
||||
help
|
||||
This enables the ESP_HTTPS_SERVER_EVENT event type. Generating these eventes adds some overhead.
|
||||
If you are not using this event type, you can disable it to save some memory.
|
||||
|
||||
|
||||
config ESP_HTTPS_SERVER_EVENT_POST_TIMEOUT
|
||||
int "Time in millisecond to wait for posting event"
|
||||
depends on (ESP_HTTPS_SERVER_ENABLE && ESP_HTTPS_SERVER_EVENTS)
|
||||
default 2000
|
||||
help
|
||||
This config option helps in setting the time in millisecond to wait for event to be posted to the
|
||||
|
||||
Reference in New Issue
Block a user