httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r365863 - /httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c
Date Wed, 04 Jan 2006 08:28:36 GMT
Author: ianh
Date: Wed Jan  4 00:28:32 2006
New Revision: 365863

URL: http://svn.apache.org/viewcvs?rev=365863&view=rev
Log:
more debug statements.
right now it looks like for large requests it isn't reading enough off the wire.


Modified:
    httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c

Modified: httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c?rev=365863&r1=365862&r2=365863&view=diff
==============================================================================
--- httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c (original)
+++ httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c Wed Jan  4 00:28:32
2006
@@ -354,10 +354,14 @@
         i++;
         posn++;
     }
-    ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "HEADER: %s %s",
+    if ( i != 1) {
+        ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "HEADER: %s %s",
                     asc_line,
                     hex_line);
+    }
+    ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "HEADER: -EOH-");
 }
+
 static apr_status_t dispatch(proxy_conn_rec *conn, request_rec *r,
                              int request_id)
 {
@@ -489,7 +493,7 @@
             if (fheader[0] != FCGI_VERSION) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
                              "proxy: FCGI: Got bogus version %d",
-                             (int) readbuf[0]);
+                             (int) fheader[0]);
                 rv = APR_EINVAL;
                 break;
             }
@@ -512,6 +516,11 @@
 
             plen = fheader[6];
 
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+                "type %d request-id %d clen: %" APR_SIZE_T_FMT " plen %d",
+                type, rid,
+                clen, plen 
+                );
 recv_again:
             if (clen > sizeof(readbuf) - 1) {
                 readbuflen = sizeof(readbuf) - 1;
@@ -528,6 +537,9 @@
                     break;
                 }
                 readbuf[readbuflen] = 0;
+                ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+                    "readbuf (%" APR_SIZE_T_FMT "): %s", 
+                    readbuflen, readbuf );
             }
 
             switch (type) {



Mime
View raw message