从ERR_CONTENT_LENGTH_MISMATCH错误的分析

08
Nov

从ERR_CONTENT_LENGTH_MISMATCH错误的分析

现象

频繁偶发API接口请求返回 ERR_CONTENT_LENGTH_MISMATCH

导致

nginx(orange) 所在磁盘满了

可能原因分析

ng开启客户端缓存,磁盘不足时候写临时文件失败

Syntax: client_body_buffer_size size;
Default:
client_body_buffer_size 8k|16k;
Context: http, server, location
Sets buffer size for reading client request body. In case the request body is larger than the buffer, the whole body or only its part is written to a temporary file. By default, buffer size is equal to two memory pages. This is 8K on x86, other 32-bit platforms, and x86-64. It is usually 16K on other 64-bit platforms.

https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size

添加新评论