comparison src/event/ngx_event_pipe.h @ 4119:b66712cde67d

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).
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 15 Sep 2011 19:00:47 +0000
parents 51b401063046
children aae172db7ac8
comparison
equal deleted inserted replaced
4118:dbddec65fdab 4119:b66712cde67d
63 ngx_buf_tag_t tag; 63 ngx_buf_tag_t tag;
64 64
65 ssize_t busy_size; 65 ssize_t busy_size;
66 66
67 off_t read_length; 67 off_t read_length;
68 off_t length;
68 69
69 off_t max_temp_file_size; 70 off_t max_temp_file_size;
70 ssize_t temp_file_write_size; 71 ssize_t temp_file_write_size;
71 72
72 ngx_msec_t read_timeout; 73 ngx_msec_t read_timeout;