httpd_stop() hangs
Posted: Fri Jan 10, 2020 10:25 pm
Hello, i need to stop an http server instance, so I have following code:
this function is called inside a task triggered by a timer.
When called httpd_stop() the task hangs (do nothing) and I don't know why or how to debug...
esp continue listening on port 80 and urls get correctly unregistered.
In logs I see
Thanks
Code: Select all
static void app_prov_stop_service(void)
{
httpd_unregister_uri(g_prov->server, "/status");
httpd_unregister_uri(g_prov->server, "/provisioning");
ESP_LOGI(TAG, "stopping httpd");
if (g_prov->server)
{ httpd_stop(g_prov->server);
g_prov->server = NULL;
}
ESP_LOGI(TAG, "httpd stopped");
[...]
When called httpd_stop() the task hangs (do nothing) and I don't know why or how to debug...
esp continue listening on port 80 and urls get correctly unregistered.
In logs I see
and not "http stopped".I (66029) app_prov: stopping httpd
Thanks