LimitRequestBody不与413大文件(25MB)响应 [英] LimitRequestBody doesn't respond with 413 for large file(25MB)

查看:214
本文介绍了LimitRequestBody不与413大文件(25MB)响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的虚拟主机文件中:

I put inside my virtual host file:

LimitRequestBody 1024

限制上传大小。当我上传100KB的档案高达7MB我得到一个413响应,但是当我尝试一个25MB的文件,我得到连接被重置,到服务器的连接,而网页被加载被重置,而不是413

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?

顺便说一句,我使用与Apache mod_wsgi的

btw, i'm using mod_wsgi with apache

推荐答案

最有可能的,因为较大规模是指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.

这篇关于LimitRequestBody不与413大文件(25MB)响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆