]> granicus.if.org Git - apache/commitdiff
Fix MaxRequestsPerChild on the Event MPM. It hasn't worked for 4 years.
authorPaul Querna <pquerna@apache.org>
Thu, 20 Nov 2008 20:27:07 +0000 (20:27 +0000)
committerPaul Querna <pquerna@apache.org>
Thu, 20 Nov 2008 20:27:07 +0000 (20:27 +0000)
* server/mpm/experimental/event/event.c
    (process_socket): Be consistent about our return value, returning 0
      means this connection is done, and that we can decrement requests_this_child.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@719357 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/experimental/event/event.c

index ce59bbd31534603ee68dc91a583f4db8fef3dcfa..2fc5c69b68720a341d5a4bf498b6fd0e3ef9cf9f 100644 (file)
@@ -675,7 +675,7 @@ read_request:
         ap_lingering_close(c);
         apr_pool_clear(p);
         ap_push_pool(worker_queue_info, p);
-        return 1;
+        return 0;
     }
     else if (cs->state == CONN_STATE_CHECK_REQUEST_LINE_READABLE) {
         apr_status_t rc;
@@ -706,7 +706,7 @@ read_request:
             AP_DEBUG_ASSERT(rc == APR_SUCCESS);
         }
     }
-    return 0;
+    return 1;
 }
 
 /* requests_this_child has gone to zero or below.  See if the admin coded