Lighttpd: Disable CGI Buffering

Is there a way to stop lighttpd from buffering POST to the CGI executable?

It seems to me that all requests are fully buffered on disk before they are redirected to the CGI executable, making it impossible to stream the input process.

To clarify, I'm only talking about a request that is sent to the CGI executable on standard input; I have already verified that the response is not buffered in this way and streaming output is indeed possible.

+4


source to share


1 answer


  • server.stream-request-body = 0 (default)

    buffers the entire request body before connecting to the backend

  • server.stream-request-body = 1

    body of the stream request to the backend; buffer for temporary files

  • server.stream-request-body = 2

    body of the stream request to the backend; minimal buffering can block downloads

when using HTTPS it is recommended to additionally set ssl.read-forward = "disable"



https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_stream-request-bodyDetails

0


source







All Articles