From 146fd39a5a6583e4f2f4298a04e3b892eb628936 Mon Sep 17 00:00:00 2001 From: Colm MacCarthaigh Date: Mon, 29 Aug 2005 10:20:25 +0000 Subject: [PATCH] Implement graceful stop in the event MPM. Implementation is identical to the worker MPM implementation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@264105 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 6 +- docs/manual/mod/mpm_common.html.en | 2 +- docs/manual/mod/mpm_common.xml | 3 +- docs/manual/new_features_2_2.html.en | 5 +- docs/manual/new_features_2_2.xml | 5 +- docs/manual/new_features_2_2.xml.ko | 2 +- docs/manual/new_features_2_2.xml.pt-br | 2 +- server/mpm/experimental/event/event.c | 80 +++++++++++++++++++++++--- server/mpm/experimental/event/mpm.h | 1 + 9 files changed, 88 insertions(+), 18 deletions(-) diff --git a/CHANGES b/CHANGES index aab1a3bb2f..8f83c3359c 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,7 @@ Changes with Apache 2.3.0 *) Doxygen fixup [Neale Ranns neale ranns.org, Ian Holsman] - *) prefork and worker MPMs: Support a graceful-stop procedure: + *) prefork, worker and event MPMs: Support a graceful-stop procedure: Server will wait until existing requests are finished or until "GracefulShutdownTimeout" number of seconds before exiting. [Colm MacCarthaigh, Ken Coar, Bill Stoddard] @@ -12,8 +12,8 @@ Changes with Apache 2.3.0 *) mod_cgid: Append .PID to the script socket filename and remove the script socket on exit. [Colm MacCarthaigh] - *) prefork and worker MPMs: Prevent children from holding open listening - ports upon graceful restart or stop. PR28167. + *) prefork, worker and event MPMs: Prevent children from holding open + listening ports upon graceful restart or stop. PR28167. [Colm MacCarthaigh, Brian Pinkerton ] *) Linux 2.0: remove support for threaded MPM's due to linuxthreads use diff --git a/docs/manual/mod/mpm_common.html.en b/docs/manual/mod/mpm_common.html.en index c8e0bb0052..d34e1fab9c 100644 --- a/docs/manual/mod/mpm_common.html.en +++ b/docs/manual/mod/mpm_common.html.en @@ -181,7 +181,7 @@ will exit. Default:GracefulShutDownTimeout 0 Context:server config Status:MPM -Module:prefork, worker +Module:prefork, worker, event Compatibility:Available in version 2.2 and later

The GracefulShutdownTimeout specifies diff --git a/docs/manual/mod/mpm_common.xml b/docs/manual/mod/mpm_common.xml index d631d32d13..347f4cb6e3 100644 --- a/docs/manual/mod/mpm_common.xml +++ b/docs/manual/mod/mpm_common.xml @@ -163,7 +163,8 @@ will exit. GracefulShutDownTimeout seconds GracefulShutDownTimeout 0 server config -preforkworker +preforkworker +event Available in version 2.2 and later diff --git a/docs/manual/new_features_2_2.html.en b/docs/manual/new_features_2_2.html.en index 7ebf1b2751..e30b4e9b5b 100644 --- a/docs/manual/new_features_2_2.html.en +++ b/docs/manual/new_features_2_2.html.en @@ -53,8 +53,9 @@ setups.

Graceful stop
-
The prefork and worker MPMs now - allow httpd to be shutdown gracefully via the +
The prefork, worker and + event MPMs now allow httpd + to be shutdown gracefully via the graceful-stop signal. The GracefulShutdownTimeout directive has been added to specify an optional timeout, after which diff --git a/docs/manual/new_features_2_2.xml b/docs/manual/new_features_2_2.xml index 7a88617948..510e66b2de 100644 --- a/docs/manual/new_features_2_2.xml +++ b/docs/manual/new_features_2_2.xml @@ -49,8 +49,9 @@ setups.
Graceful stop
-
The prefork and worker MPMs now - allow httpd to be shutdown gracefully via the +
The prefork, worker and + event MPMs now allow httpd + to be shutdown gracefully via the graceful-stop signal. The GracefulShutdownTimeout directive diff --git a/docs/manual/new_features_2_2.xml.ko b/docs/manual/new_features_2_2.xml.ko index 0e8d3ab010..733323c50c 100644 --- a/docs/manual/new_features_2_2.xml.ko +++ b/docs/manual/new_features_2_2.xml.ko @@ -1,7 +1,7 @@ - + +