HTTP directives

sendfile_max_chunk directive (HTTP)

Limit bytes transferred in one sendfile call so other connections can get worker time. Context: http, server, location. Documented default: 2m. Version: Introduction not established. OSS documentation; check target build. Default unlimited before 1.21.4. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.

Formal Syntax & Structure

nginx syntaxnginx
sendfile_max_chunk size;

Parameters & Attributes

NameTypeDescription
sizebyte sizeValue for sendfile max chunk. Use Nginx size suffixes where appropriate.

Working Example

Example Snippetnginx
sendfile_max_chunk 512k;
Nginx Reference