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
Multiple simultaneous connections cause errors #300
Comments
What's the minimal test case to reproduce this? (my hunch is that it's actually caused by the client closing the connection, not the server...also note you can get a better stacktrace by not compiling it with --release mode...) |
FWIW I can download a large file from two different clients and the files come down as two "good" copies and are streamed simultaneously (this is a static file from /public ). Cheers! |
@denysvitali have you checked your OS limits like |
I can reproduce this with stress loading serving big static files like videos. Using
Kemal process crashes when the test finishes (not in between). I guess that the event loop can't handle that much load and blows up in the end. Memory consumption was around 3-5 MB which is fine
//cc @asterite |
Funny enough this only happens while all the connections are being closed @denysvitali I ran |
Really, really strange! |
I reduced the case with only using
|
@denysvitali Could you post a stack trace that has method names as well (I think either adding --debug or not using --release might should do it...FWIW). It does look somehow similar to the OpenSSL 4003 one linked, as well... |
OK just to mention it, I believe the |
Is there a way to |
I never saw the crash actually occur, but heard rumors it is fixed in git master FWIW try that? crystal-lang/crystal#4003 |
These are just warnings and doesn't crash the process anymore 👍 |
"These are just warnings and doesn't crash the process anymore" |
|
When multiple static files (>1MB) are loaded at the same time, the following error(s) appears, and the resource isn't loaded
The text was updated successfully, but these errors were encountered: