httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Fri, 25 Jan 2002 02:15:10 GMT
jerenkrantz    02/01/24 18:15:10

  Modified:    server   protocol.c
  Log:
  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.
  
  Revision  Changes    Path
  1.70      +6 -2      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- protocol.c	25 Jan 2002 01:20:00 -0000	1.69
  +++ protocol.c	25 Jan 2002 02:15:09 -0000	1.70
  @@ -566,8 +566,12 @@
                            &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;
           }
  
  
  

Mime
View raw message