-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
[🐛 BUG]: Static middleware causes ERR_CONTENT_LENGTH_MISMATCH #1593
Comments
Hey @tux-rampage 👋🏻 |
BTW, could you try to remove the |
How should I do that? I did not configure that and RR seems to send it from the Middleware (Those are the response headers). |
Oh, yeah. Could you try then to use just plain |
All right, same issue with a CURL request:
|
Ok, thanks for this investigation 👍🏻 I'll write a tests with a big static file to confirm this and then dig into the problem. I thinks this is a http server limitation and I would be able to raise the limits. Expected fix should be this Thursday in |
Awesome. Thanks for the quick reaction 👍 |
Funny thing here, if you copy the file |
@tux-rampage Are you using |
@tux-rampage Found the bug. Could you please remove the |
Hi @rustatian Thanks for the quick solution. I have retested it with |
Hey @tux-rampage 👋🏻 Cool, nice to hear that ⚡ |
No duplicates 🥲.
What happened?
I configured an application as follows:
For some resources that will be served by the static middleware (identified by the header
X-RoadRunner-Source
from the config above), the browser rejects the resource withERR_CONTENT_LENGTH_MISMATCH
(webkit) orNS_ERROR_NET_PARTIAL_TRANSFER
(firefox).This does not happen for all files, some are served without any problems, while others are broken. The only difference that i can currently spot is the file size. It seems to happen when a file exceeds 16k. Could this be a buffer problem?
Version (rr --version)
rr version 2023.1.4 (build time: 2023-05-25T11:10:19+0000, go1.20.4), OS: linux, arch: amd64
rr version 2.12.2 (build time: 2023-01-12T12:07:45+0000, go1.19.5), OS: linux, arch: amd64
How to reproduce the issue?
See yaml in the description
Relevant log output
No response
The text was updated successfully, but these errors were encountered: