summaryrefslogtreecommitdiffstats
path: root/include/ap_mpm.h
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2014-05-11 22:52:32 +0200
committerEric Covener <covener@apache.org>2014-05-11 22:52:32 +0200
commitfba67798ed9de00e5a33c18ba9cfe66caec06aa3 (patch)
tree600d6944addb3ff44402a35104329d3583e29040 /include/ap_mpm.h
parentExtend the socket callbacks in event to allow a timeout on the I/O callback. (diff)
downloadapache2-fba67798ed9de00e5a33c18ba9cfe66caec06aa3.tar.xz
apache2-fba67798ed9de00e5a33c18ba9cfe66caec06aa3.zip
PR56333: Add an API to resume a connection that a handler has previously suspended.
Submitted by: Artem <artemciy gmail.com>, Edward Lu <Chaosed0 gmail.com> Committed by: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1593860 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_mpm.h')
-rw-r--r--include/ap_mpm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ap_mpm.h b/include/ap_mpm.h
index d851f35582..d50acd95e3 100644
--- a/include/ap_mpm.h
+++ b/include/ap_mpm.h
@@ -178,6 +178,8 @@ AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
#define AP_MPMQ_GENERATION 15
/** MPM can drive serf internally */
#define AP_MPMQ_HAS_SERF 16
+/** MPM supports suspending/resuming connections */
+#define AP_MPMQ_CAN_SUSPEND 17
/** @} */
/**
@@ -198,6 +200,8 @@ AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result);
typedef void (ap_mpm_callback_fn_t)(void *baton);
/* only added support in the Event MPM.... check for APR_ENOTIMPL */
+AP_DECLARE(apr_status_t) ap_mpm_resume_suspended(conn_rec *c);
+/* only added support in the Event MPM.... check for APR_ENOTIMPL */
AP_DECLARE(apr_status_t) ap_mpm_register_timed_callback(apr_time_t t,
ap_mpm_callback_fn_t *cbfn,
void *baton);