]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- add query string info to fcgi connect error messages
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 14 Sep 2009 09:24:50 +0000 (09:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    uri-query.patch -> 1.1

uri-query.patch [new file with mode: 0644]

diff --git a/uri-query.patch b/uri-query.patch
new file mode 100644 (file)
index 0000000..05874e3
--- /dev/null
@@ -0,0 +1,61 @@
+--- lighttpd-1.4.23/src/mod_fastcgi.c~ 2009-09-14 12:11:44.000000000 +0300
++++ lighttpd-1.4.23/src/mod_fastcgi.c  2009-09-14 12:15:11.731727479 +0300
+@@ -3270,18 +3270,18 @@
+                                   hctx->reconnects < 5) {
+                                       fcgi_reconnect(srv, hctx);
+-                                      log_error_write(srv, __FILE__, __LINE__, "ssbsbs",
++                                      log_error_write(srv, __FILE__, __LINE__, "ssbsbsbs",
+                                               "response not received, request not sent",
+                                               "on socket:", proc->connection_name,
+-                                              "for", con->uri.path, ", reconnecting");
++                                              "for", con->uri.path, "?", con->uri.query, ", reconnecting");
+                                       return HANDLER_WAIT_FOR_FD;
+                               }
+-                              log_error_write(srv, __FILE__, __LINE__, "sosbsbs",
++                              log_error_write(srv, __FILE__, __LINE__, "sosbsbsbs",
+                                               "response not received, request sent:", hctx->wb->bytes_out,
+                                               "on socket:", proc->connection_name,
+-                                              "for", con->uri.path, ", closing connection");
++                                              "for", con->uri.path, "?", con->uri.query, ", closing connection");
+                               fcgi_connection_close(srv, hctx);
+@@ -3293,10 +3293,10 @@
+                               /* response might have been already started, kill the connection */
+                               fcgi_connection_close(srv, hctx);
+-                              log_error_write(srv, __FILE__, __LINE__, "ssbsbs",
++                              log_error_write(srv, __FILE__, __LINE__, "ssbsbsbs",
+                                               "response already sent out, but backend returned error",
+                                               "on socket:", proc->connection_name,
+-                                              "for", con->uri.path, ", terminating connection");
++                                              "for", con->uri.path, "?", con->uri.query, ", terminating connection");
+                               connection_set_state(srv, con, CON_STATE_ERROR);
+                       }
+@@ -3346,9 +3346,9 @@
+                        * even if the FCGI_FIN packet is not received yet
+                        */
+               } else {
+-                      log_error_write(srv, __FILE__, __LINE__, "sbsbsd",
++                      log_error_write(srv, __FILE__, __LINE__, "sbsbsbsd",
+                                       "error: unexpected close of fastcgi connection for",
+-                                      con->uri.path,
++                                      con->uri.path, "?", con->uri.query,
+                                       "(no fastcgi process on socket:", proc->connection_name, "?)",
+                                       hctx->state);
+@@ -3519,8 +3519,8 @@
+               if (!extension->note_is_sent) {
+                       extension->note_is_sent = 1;
+-                      log_error_write(srv, __FILE__, __LINE__, "sbsbs",
+-                                      "all handlers for ", con->uri.path,
++                      log_error_write(srv, __FILE__, __LINE__, "sbsbsbs",
++                                      "all handlers for ", con->uri.path, "?", con->uri.query,
+                                       "on", extension->key,
+                                       "are down.");
+               }
This page took 0.088186 seconds and 4 git commands to generate.