对于大文件(25MB),LimitRequestBody 不响应 413
我放入我的虚拟主机文件:
LimitRequestBody 1024
以限制上传大小。当我上传 100kB 至 7MB 的文件时,我得到 413 响应,但是当我尝试 25MB 文件时,我得到“连接已重置。加载页面时与服务器的连接已重置”而不是 413
有谁知道为什么这会发生吗?
顺便说一句,我正在使用 mod_wsgi 和 apache
I put inside my virtual host file:
LimitRequestBody 1024
to limit the upload size. When i upload files of 100kB up to 7MB i get a 413 Response, but when i try a 25MB file I get "The connection was reset. The connection to the server was reset while the page was loading" instead of 413
Does anyone know why this would happen?
btw, i'm using mod_wsgi with apache
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最有可能的原因是,较大的大小意味着 HTTP 客户端超出了套接字缓冲区大小,因此在写入时被阻止,并在决定开始从服务器读取响应之前检测到写入时已关闭的连接。
Most likely because the larger size meant HTTP client exceeded socket buffer sizes and so was blocked on writing and detected a closed connection on the write before it even decided to start reading the response from the server.