From 429aee9eec57a76a46fcc11a9a74307ad86530be Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Fri, 25 Jan 2002 02:15:09 +0000 Subject: [PATCH] Turn the log verbosity WAY down by not logging TIMEUP and EOF errors in 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/protocol.c b/server/protocol.c index 5058d41e07..b1b4b7aa3f 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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; } -- 2.50.1