summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-09-15 19:00:47 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-09-15 19:00:47 +0000
commita746bab7c113840246159a805e544457161c1d86 (patch)
tree4760f29304583c13f0bda9962f3cd5df2106cd00 /src/http/ngx_http_parse.c
parentffe4f114173468e2eb205448820c66af0863a9db (diff)
downloadnginx-a746bab7c113840246159a805e544457161c1d86.tar.gz
nginx-a746bab7c113840246159a805e544457161c1d86.tar.bz2
Upstream: pipe length and input_filter_init in buffered mode.
As long as ngx_event_pipe() has more data read from upstream than specified in p->length it's passed to input filter even if buffer isn't yet full. This allows to process data with known length without relying on connection close to signal data end. By default p->length is set to -1 in upstream module, i.e. end of data is indicated by connection close. To set it from per-protocol handlers upstream input_filter_init() now called in buffered mode (as well as in unbuffered mode).
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions