diff src/http/modules/ngx_http_fastcgi_module.c @ 1030:5a86fcc480c6

add debug logging for FastCGI zero size buf alert
author Igor Sysoev <igor@sysoev.ru>
date Mon, 15 Jan 2007 16:00:51 +0000
parents a0310ac2814f
children c28c8bdb57f4
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c	Fri Jan 12 21:58:02 2007 +0000
+++ b/src/http/modules/ngx_http_fastcgi_module.c	Mon Jan 15 16:00:51 2007 +0000
@@ -1310,6 +1310,9 @@
 
         ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, "input buf #%d", b->num);
 
+        ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0,
+                       "input buf %p %z", b->pos, b->last - b->pos);
+
 
         if (f->pos + f->length < f->last) {
 
@@ -1350,6 +1353,9 @@
         b->shadow = buf;
         b->last_shadow = 1;
 
+        ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0,
+                       "input buf last %p %z", b->pos, b->last - b->pos);
+
         return NGX_OK;
     }