httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r366996 - /httpd/httpd/branches/async-read-dev/server/protocol.c
Date Sun, 08 Jan 2006 06:41:35 GMT
Author: brianp
Date: Sat Jan  7 22:41:34 2006
New Revision: 366996

URL: http://svn.apache.org/viewcvs?rev=366996&view=rev
Log:
Avoid setting r->the_request to NULL if the client sends too many blank lines.
Also, remove a bit of debug code.

Modified:
    httpd/httpd/branches/async-read-dev/server/protocol.c

Modified: httpd/httpd/branches/async-read-dev/server/protocol.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/async-read-dev/server/protocol.c?rev=366996&r1=366995&r2=366996&view=diff
==============================================================================
--- httpd/httpd/branches/async-read-dev/server/protocol.c (original)
+++ httpd/httpd/branches/async-read-dev/server/protocol.c Sat Jan  7 22:41:34 2006
@@ -587,7 +587,6 @@
     }
     *last_char = '\0';
     bytes_handled = last_char - *s;
-    fprintf(stderr, "read line '%s'\n", *s);
 
     *read = bytes_handled;
     return APR_SUCCESS;
@@ -791,8 +790,13 @@
             if (r->num_blank_lines < max_blank_lines) {
                 return APR_SUCCESS;
             }
+            else {
+                set_the_request(r, "");
+            }
+        }
+        else {
+            set_the_request(r, line);
         }
-        set_the_request(r, line);
     }
     else {
         /* We've already read the first line of the request.  This is either



Mime
View raw message