hoeken / PsychicHttp

Simple + Robust HTTP/S server with websockets for ESP32 based on ESP-IDF http server.
MIT License
117 stars 27 forks source link

Stuck loading async files #184

Open johnnytolengo opened 4 hours ago

johnnytolengo commented 4 hours ago

Hi, I have running a web server (esp32, Psychihttp verison 1.2.1, Using latest Chrome) on static files (js chunk), and sometimes it stuck when loading when it happens those request are forever in "Pending". After I refresh the browser all loads ok, because the already loaded are cached in the browser and the missing are loaded again. Any idea how to fix that?

image

hitecSmartHome commented 3 hours ago

Increase max open tcp socket in the server config struct

johnnytolengo commented 3 hours ago

config.max_open_sockets=10; Fixed that issue. Thank you!

johnnytolengo commented 3 hours ago

image

hitecSmartHome commented 1 hour ago

Np. You have to read a little bit in the IDF docs and on the internet so you can understand more about it. You will face other challenges down the road as your frontend develops.