]> granicus.if.org Git - apache/commitdiff
Turn the log verbosity WAY down by not logging TIMEUP and EOF errors in
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 25 Jan 2002 02:15:09 +0000 (02:15 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 25 Jan 2002 02:15:09 +0000 (02:15 +0000)
read_request_line as these are very common place with HTTP keepalive
timeouts.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93019 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 5058d41e07f74d38cfb0804d1755386e00ba8c46..b1b4b7aa3f6902d422363f99039716334a5fea39 100644 (file)
@@ -566,8 +566,12 @@ static int read_request_line(request_rec *r)
                          &len, r, 0);
 
         if (rv != APR_SUCCESS) {
-            /* Something went horribly wrong. */
-            ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "read_request_line() failed");
+            /* We'll get TIMEUP or EOF on keepalives, so those are common
+             * errors that we don't want to log.
+             */
+            if (!APR_STATUS_IS_TIMEUP(rv) && !APR_STATUS_IS_EOF(rv)) {
+                ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "read_request_line() failed");
+            }
                r->request_time = apr_time_now();
             return 0;
         }