httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <sterl...@covalent.net>
Subject [PATCH] log INFO when connection times out
Date Mon, 10 Dec 2001 22:20:54 GMT
Hi -

Seems to me it would be nice to log something (this patch has info) when a
connection times out - probably many places this could be done, this one
is in read request.

sterling


Index: server/protocol.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/server/protocol.c,v
retrieving revision 1.60
diff -u -r1.60 protocol.c
--- server/protocol.c	2001/12/05 01:34:00	1.60
+++ server/protocol.c	2001/12/10 21:57:37
@@ -596,6 +596,9 @@
             ap_send_error_response(r, 0);
             ap_run_log_transaction(r);
             return r;
+        } else if (r->status == HTTP_REQUEST_TIME_OUT) {
+            ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, r->status, r,
+                          "request failed: connection timed out");
         }
         return NULL;
     }


Mime
View raw message