Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Latest commit

History

History
18 lines (15 loc) 路 530 Bytes

File metadata and controls

18 lines (15 loc) 路 530 Bytes
  • X-Sendfile

http:
  address: 127.0.0.1:55555
  max_request_size: 1024
  access_logs: false
  middleware: ["sendfile"]

  pool:
    num_workers: 2
    max_jobs: 0
    allocate_timeout: 60s
    destroy_timeout: 60s

HTTP middleware to handle X-Sendfile header Middleware reads the file in 10MB chunks. So, for example for the 5Gb file, only 10MB of RSS will be used. If the file size is smaller than 10MB, the middleware fits the buffer to the file size.