Changes with Apache 2.0.16-dev
+ *) Get MaxRequestsPerChild working with the Windows MPM.
+ [Bill Stoddard]
*) Make generic hooks to work, with mod_generic_hook_import/export
experimental modules. [Ben Laurie, Will Rowe]
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2001/04/03 00:27:08 $]
+Last modified at [$Date: 2001/04/03 01:09:16 $]
Release:
Status: patch brought forward from 1.3.14
WIN32 and OS2 need review [William Rowe, Brian Harvard]
- * Win32: Enable the Windows MPM to honor max_requests_per_child
- Status: FirstBill will fix this?
-
* Win32: Get Apache working on Windows 95/98. The following work
(at least) needs to be done:
- winnt MPM: Fix 95/98 code paths in the winnt MPM. There is some NT
static void winnt_accept(void *listen_socket)
{
static int num_completion_contexts = 0;
+ static int requests_this_child = 0;
PCOMP_CONTEXT pCompContext;
DWORD BytesRead;
SOCKET nlsd;
nlsd = (SOCKET) listen_socket;
while (!shutdown_in_progress) {
+ if (ap_max_requests_per_child && (requests_this_child > ap_max_requests_per_child)) {
+ break;
+ }
pCompContext = NULL;
/* Grab a context off the queue */
apr_lock_acquire(qlock);
*/
PostQueuedCompletionStatus(ThreadDispatchIOCP, 0, IOCP_CONNECTION_ACCEPTED,
&pCompContext->Overlapped);
+ requests_this_child++;
+ }
+
+ if (!shutdown_in_progress) {
+ /* Yow, hit an irrecoverable error! Tell the child to die. */
+ SetEvent(exit_event);
}
}
static PCOMP_CONTEXT winnt_get_connection(PCOMP_CONTEXT pCompContext)