简体   繁体   English

nginx:是否有最大“client_max_body_size”?

[英]nginx: Is there a maximum “client_max_body_size”?

I've looked through the nginx technical documentation, and there's no real mention of a maximum plausible/possible client_max_body_size ... but I was wondering if there was?我查看了 nginx 技术文档,并没有真正提到最大合理/可能的client_max_body_size ......但我想知道是否有? Could it be, for example, 1TB?例如,它可能是 1TB 吗? (Don't ask why!) (不要问为什么!)

(The "why" would help answer the "real" question if there is one hidden here. ;)) (如果这里隐藏了一个“为什么”将有助于回答“真正的”问题。;))

On most platforms it's a 64 bit number putting the limit around 9EB, on some others it's a 32 bit number putting the limit at around 2GB.在大多数平台上,它是一个 64 位数字,限制在 9EB 左右,在其他一些平台上,它是一个 32 位数字,限制在 2GB 左右。 However, there are other factors that will have an affect on the request body size, such as buffering settings and memory page sizes, before you get to those large sizes.但是,在达到这些大尺寸之前,还有其他因素会对请求正文大小产生影响,例如缓冲设置和 memory 页面大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM