Skip to content
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

webserver crashes when serving multiple larger files #96

Open
Tobinator32 opened this issue Oct 26, 2023 · 3 comments
Open

webserver crashes when serving multiple larger files #96

Tobinator32 opened this issue Oct 26, 2023 · 3 comments

Comments

@Tobinator32
Copy link

Im currently involved in a project requiring 5 larger (~15kb) files. The Problem now is, that the webserver crashes rather quickly and becomes unresponsive. Are there any solutions for that? Setting the backlog parameter helps to some extend but does not resolve the issue completely. Im running the latest micropython with frozen micro web src module.

@jczic
Copy link
Owner

jczic commented Jan 25, 2024

@Tobinator32 : Have you found a solution to your problem? Was it really linked to the size of the files?

@Tobinator32
Copy link
Author

Hi. It seems like a general Problem with Micropython. See the discussion there: micropython/micropython#12819
At this point it doesnt seem to be a problem specifically with your webserver.
Kind Regards Tobi

@jczic
Copy link
Owner

jczic commented Jan 25, 2024

@Tobinator32,
Ah yes indeed, quite a discussion and with dpgeorge :)
MicroWebSrv2 never opens the complete file in memory, precisely to avoid worries about excessive reservations. So that's another problem.
Personally, I use MicroWebSrv2 quite a lot in CPython on large Web servers.
Thanks to you in any case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants