You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2006/01/08 07:41:35 UTC

svn commit: r366996 - /httpd/httpd/branches/async-read-dev/server/protocol.c

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