-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
microdot hangs when aborting static file serve #175
Comments
What do you mean here by "currently loading"? What is the page doing? If you can provide an example application that shows the hang that would be useful. |
Hello, |
If you could provide an example that I can use to reproduce the problem that would help, because you are probably omitting some details. Like for example, when you press the back button what page is it being requested? You must have had some other page in the history. |
Im currently making a little example. Its not demanding enough yet to reproduce the issue though. |
There it is https://github.com/Tobinator32/microdot_crash_demo. just upload everything onto the esp32( ive precompiled all microdot files in my setup). Now most pages try to load 4 pictures which simulates some traffic doing file requests. Rather quickly it suddenly stops serving any requests. |
im already a bit further down the road: see here: micropython/micropython#12819 |
Sounds like this is a bug in MicroPython, so I'm closing for now. Feel free to reopen if there are new developments. |
Im currently developing a small web app and encountering some issues. im running latest micropython build with microdot as a precompiled module (not frozen but tried that no difference). There is one websocket and a static file serve. Everything works fine but if i leave the currently loading page in my browser by either pressing that back button or closing the window the webserver freezes. This is only if somehow aborting the currently sending file or pending files that are requested and the connection are still in the waiting queue.
After a short deepdive microdot_async waits for wait_io_event residing inside the asyncio lib. Also the websocket stops initiating.
My question is how can it be that esp32 becomes numb in this scenarios and how to solve the issue.
Kind Regards Tobi
The text was updated successfully, but these errors were encountered: