]> git.kaiwu.me - nginx.git/commitdiff
add debug logging for FastCGI zero size buf alert
authorIgor Sysoev <igor@sysoev.ru>
Mon, 15 Jan 2007 16:00:51 +0000 (16:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 15 Jan 2007 16:00:51 +0000 (16:00 +0000)
src/event/ngx_event_pipe.c
src/http/modules/ngx_http_fastcgi_module.c

index 59b89b0f993361e7617914e53f6a0f0311e57f22..0239bd105b801fd2ed6d6fde443d5706850da2e8 100644 (file)
@@ -531,6 +531,12 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
             } else if (!p->cachable && p->in) {
                 cl = p->in;
 
+                ngx_log_debug3(NGX_LOG_DEBUG_EVENT, p->log, 0,
+                               "pipe write buf ls:%d %p %z",
+                               cl->buf->last_shadow,
+                               cl->buf->pos,
+                               cl->buf->last - cl->buf->pos);
+
                 if (cl->buf->recycled
                     && cl->buf->last_shadow
                     && bsize + cl->buf->last - cl->buf->pos > p->busy_size)
index ab214770e0a45bc5e9a9853171f5c92eb969a22a..3791b3e14214a9481cd25510a1b39fd1230f3415 100644 (file)
@@ -1310,6 +1310,9 @@ ngx_http_fastcgi_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf)
 
         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 @@ ngx_http_fastcgi_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf)
         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;
     }