]> git.kaiwu.me - nginx.git/commit
Stream: preread phase.
authorVladimir Homutov <vl@nginx.com>
Thu, 15 Sep 2016 11:56:02 +0000 (14:56 +0300)
committerVladimir Homutov <vl@nginx.com>
Thu, 15 Sep 2016 11:56:02 +0000 (14:56 +0300)
commit704446127e310d8b0a4e9d5ddf655d5684846fce
treef27efe1175a27a05d8d541893536d9eb4e921cf9
parent05a455ff21aa7afd938bd45444e5d9c6d42b6c4c
Stream: preread phase.

In this phase, head of a stream is read and analysed before proceeding to the
content phase.  Amount of data read is controlled by the module implementing
the phase, but not more than defined by the "preread_buffer_size" directive.
The time spent on processing preread is controlled by the "preread_timeout"
directive.

The typical preread phase module will parse the beginning of a stream and set
variable that may be used by the content phase, for example to make routing
decision.
src/stream/ngx_stream.c
src/stream/ngx_stream.h
src/stream/ngx_stream_core_module.c