Commit eb9182ba authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

fix read messages in high throughput using keepalive on

parent d5f2f449
......@@ -160,9 +160,10 @@ ngx_http_push_stream_publisher_body_handler(ngx_http_request_t *r)
while ((chain != NULL) && (chain->buf != NULL)) {
len = ngx_buf_size(chain->buf);
// if buffer is equal to content length all the content is in this buffer
if (len == r->headers_in.content_length_n) {
if (len >= r->headers_in.content_length_n) {
buf->start = buf->pos;
buf->last = buf->pos;
len = r->headers_in.content_length_n;
}
if (chain->buf->in_file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment