Proddy
Proddy
I'd rather use the native IDF library that is supported by platformio/platform-espressif32 and not build myself if possible. The only settings you can change are what are defined in `HTTPD_DEFAULT_CONFIG()`...
the default settings used are at https://github.com/hoeken/PsychicHttp/blob/26b49f73dca48fa333361fb4a4cfeebca802eeda/src/PsychicHttpServer.cpp#L21 and these modified ``` config.global_user_ctx = this; config.global_user_ctx_free_fn = destroy; config.max_uri_handlers = 20; ``` I'll experiment with the #sockets and also enabling ENABLE_ASYNC
Enabling ENABLE_ASYNC didn't work for me, it crashed on the handler in async_worker.cpp.
it should be fine, as long as the `WiFi.mode()` has been called once before `server.listen()`. This is because WiFi.mode calls IDF's `esp_wifi_start()`. Any `WiFi.begin()`'s or reconnect code can safely happen...
A handy way to test this is using the "CORS Unblock" browser extension (for Chrome and Edge). It basically interrupts the headers and mangles them, which is what we're doing...
I have a few old Async* request->onDisconnect()'s I like to port over. Is there a standard way of doing this now (not ES or WS).
That actually makes a lot of sense
@hoeken I have a similar use case to @zekageri 's. I have a 'Restart' button on a web page that reboots the ESP32 but I want to gracefully exit from...
thanks @hoeken - it was a problem with my code in the end (always is!). I had ```C request->reply(200); WiFi.disconnect(true);
i have a huge amount of web pages (220KB), all stored in Flash mem, with 60+ endpoints. That's mainly because my app is translated to 8 languages. Brotli's compression is...