]> git.kaiwu.me - nginx.git/commitdiff
FastCGI: fixed start pointers in request buffers.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 18 Sep 2014 12:37:14 +0000 (16:37 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 18 Sep 2014 12:37:14 +0000 (16:37 +0400)
The start pointers are used in ngx_http_upstream_reinit() to
reinit FastCGI requests.

src/http/modules/ngx_http_fastcgi_module.c

index 9847ec1705226ec59176b2b59833f5ceaf4fc86e..a49c93ca21ee7accff9a2c6be7103a242ebeae47 100644 (file)
@@ -1129,6 +1129,7 @@ ngx_http_fastcgi_create_request(ngx_http_request_t *r)
 
                 } else {
                     b->pos = pos;
+                    b->start = pos;
                     pos += 32 * 1024;
 
                     if (pos >= body->buf->last) {