diff options
author | Graham Leggett <minfrin@apache.org> | 2016-02-19 15:00:05 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2016-02-19 15:00:05 +0000 |
commit | 84051c1c9fa812575a94091b224e192118201778 (patch) | |
tree | ab9d2eac03478ef9b9eee1e3c3dc47cd0e86498b /include/mpm_common.h | |
parent | e3cc634d1362f6fb35becfec66a6edc842cbb78d (diff) | |
download | httpd-84051c1c9fa812575a94091b224e192118201778.tar.gz |
mpm: Add a complete_connection hook that confirms whether an MPM is allowed
to leave the WRITE_COMPLETION phase. Move filter code out of the MPMs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1731253 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/mpm_common.h')
-rw-r--r-- | include/mpm_common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mpm_common.h b/include/mpm_common.h index 4031b51ddf..9cc715b74b 100644 --- a/include/mpm_common.h +++ b/include/mpm_common.h @@ -458,6 +458,16 @@ AP_DECLARE_HOOK(apr_status_t, mpm_resume_suspended, (conn_rec*)) AP_DECLARE_HOOK(const char *,mpm_get_name,(void)) /** + * Hook called to determine whether we should stay within the write completion + * phase. + * @param c The current connection + * @return OK if write completion should continue, DECLINED if write completion + * should end gracefully, or a positive error if we should begin to linger. + * @ingroup hooks + */ +AP_DECLARE_HOOK(int, complete_connection, (conn_rec *c)) + +/** * Notification that connection handling is suspending (disassociating from the * current thread) * @param c The current connection |