httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Mon, 25 Oct 2004 06:40:08 GMT
pquerna     2004/10/24 23:40:08

  Modified:    .        CHANGES
               server   protocol.c
  Log:
  This will put some messages in the error log when some people try a lame
  DoS by just opening a socket, and never sending any data.
  
  Ivan suggested such a change about a month ago, to match the 1.3 behavoir.
  
  Today I helped OSU's Admins figure out that someone was trying this 'attack'
  against their mirror server.  The server status just showed hundreds of
  Apache Children stuck in Reading.  This will at least hint to the admins
  where the problem is by telling them about it in the error log.
  
  Inspired by: Rici Lake, Ivan Ristic <ivanr webkreator.com>
  
  Revision  Changes    Path
  1.1620    +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1619
  retrieving revision 1.1620
  diff -u -r1.1619 -r1.1620
  --- CHANGES	23 Oct 2004 22:39:52 -0000	1.1619
  +++ CHANGES	25 Oct 2004 06:40:07 -0000	1.1620
  @@ -2,6 +2,9 @@
   
     [Remove entries to the current 2.0 section below, when backported]
   
  +  *) core: Add a warning message if the request line read fails.
  +     [Paul Querna]
  +
     *) mod_cache: Add CacheIgnoreHeaders directive.  PR 30399.
        [Rüiger Plü <r.pluem t-online.de>]
   
  
  
  
  1.156     +4 -1      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.155
  retrieving revision 1.156
  diff -u -r1.155 -r1.156
  --- protocol.c	23 Oct 2004 22:39:53 -0000	1.155
  +++ protocol.c	25 Oct 2004 06:40:08 -0000	1.156
  @@ -603,7 +603,10 @@
                   r->proto_num = HTTP_VERSION(1,0);
                   r->protocol  = apr_pstrdup(r->pool, "HTTP/1.0");
               }
  -
  +            else if (r->connection->keepalive != AP_CONN_KEEPALIVE) {
  +                ap_log_rerror(APLOG_MARK, APLOG_NOTICE, rv, r,
  +                              "request line read error.");
  +            }
               return 0;
           }
       } while ((len <= 0) && (++num_blank_lines < max_blank_lines));
  
  
  

Mime
View raw message