LimitRequestBody doesn't respond with 413 for large file(25MB)

眉间皱痕 提交于 2019-12-11 14:55:39

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/4467443/limitrequestbody-doesnt-respond-with-413-for-large-file25mb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!