0.6.30 @ linux amd64 & fcgi

Sergey Serov mpa at corg.net
Wed May 7 21:12:58 MSD 2008


Откат в версии 0.5.27 файла src/http/modules/ngx_http_fastcgi_module.c
до версии 0.2.26 проблему решает. Изменениний на первый взгляд там минимум:

diff -ur nginx-0.5.26/src/http/modules/ngx_http_fastcgi_module.c nginx-0.5.27/src/http/modules/ngx_http_fastcgi_module.c
--- nginx-0.5.26/src/http/modules/ngx_http_fastcgi_module.c 2007-06-04 13:52:47.000000000 +0000
+++ nginx-0.5.27/src/http/modules/ngx_http_fastcgi_module.c 2007-07-09 06:06:15.000000000 +0000
@@ -1144,16 +1144,16 @@
             return NGX_OK;
         }

-        if (u->buffer.pos == u->buffer.last) {
+        if (rc == NGX_OK) {
             return NGX_AGAIN;
         }

-        if (rc == NGX_AGAIN) {
-            ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
-                          "upstream split a header line in FastCGI records");
+        /* rc == NGX_AGAIN */

-            return NGX_HTTP_UPSTREAM_INVALID_HEADER;
-        }
+        ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
+                      "upstream split a header line in FastCGI records");
+
+        return NGX_HTTP_UPSTREAM_INVALID_HEADER;
     }
 }







More information about the nginx-ru mailing list