From: Justin Erenkrantz Date: Fri, 25 Jan 2002 02:15:09 +0000 (+0000) Subject: Turn the log verbosity WAY down by not logging TIMEUP and EOF errors in X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d673d4591dc5fb0fa1e9dfcfcb257c8c6678b78f;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/protocol.c b/server/protocol.c index 5058d41e07f..b1b4b7aa3f6 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; }