mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-12 07:33:17 +00:00
fix(esp_http_server): Async handler example stack overflow fix
1. In async handler example, on hitting /long URI and closing the connection forcefully from client (example ctrl + c) cause more stack size (almost 200 bytes) than successfull request. 2. The connection should be closed from the server as soon as the client closes the connect (i.e. handler should return ESP_FAIL to close the connection)
This commit is contained in:
@@ -7,4 +7,10 @@ menu "Example Configuration"
|
||||
The maximum number of simultaneous async requests that the
|
||||
web server can handle.
|
||||
|
||||
config EXAMPLE_ASYNC_WORKER_TASK_STACK_SIZE
|
||||
int "Async Worker Task Stack Size"
|
||||
default 2560
|
||||
help
|
||||
The stack size allocated for each async worker task.
|
||||
|
||||
endmenu
|
||||
|
Reference in New Issue
Block a user