From 6805c39b79df8e4ca15dab3a581e6443a72cd2c2 Mon Sep 17 00:00:00 2001 From: Luca Toscano Date: Mon, 8 Jan 2018 10:16:36 +0000 Subject: [PATCH] event.xml: follow up r1820466 with Yann's suggestions git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1820539 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/event.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/manual/mod/event.xml b/docs/manual/mod/event.xml index 4f1dbdb35f..4e6fcc7139 100644 --- a/docs/manual/mod/event.xml +++ b/docs/manual/mod/event.xml @@ -97,8 +97,11 @@ of the AsyncRequestWorkerFactor.

sockets and they can be re-used to serve other requests.
Closing
-
Sometimes the MPM needs to perform a lingering close, namely sending back an early error to the client while it is still transmitting data to httpd. Sending the response and then closing the connection immediately is not the correct thing to do since the client (still trying to send the rest of the request) would get a connection reset and could not read the httpd's response. So in such cases, httpd tries to read the rest of the request to allow the client to consume the response. The lingering close is time bounded but it can take relatively long time, so a worker thread can offload this work to the listener. From 2.4.28 onward - the listener does not perform the lingering close anymore but it offloads the job to the first worker available. +
Sometimes the MPM needs to perform a lingering close, namely sending back an early error to the client while it is still transmitting data to httpd. + Sending the response and then closing the connection immediately is not the correct thing to do since the client (still trying to send the rest of the + request) would get a connection reset and could not read the httpd's response. The lingering close is time bounded but it can take relatively long + time, so it's offloaded to a worker thread (including the shutdown hooks and real socket close). From 2.4.28 onward this is also the + case when connections finally timeout (the listener thread never handles connections besides waiting for and dispatching their events).
-- 2.40.0