Skip to content

Commit ebddc38

Browse files
committed
Add configuration of the Flush provider for mod_proxy_fdpass.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@725946 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2295be8 commit ebddc38

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

modules/proxy/mod_proxy.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ static const char *set_worker_param(apr_pool_t *p,
297297
worker->conn_timeout = timeout;
298298
worker->conn_timeout_set = 1;
299299
}
300+
else if (!strcasecmp(key, "flusher")) {
301+
worker->flusher = apr_pstrdup(p, val);
302+
}
300303
else {
301304
return "unknown Worker parameter";
302305
}

modules/proxy/mod_proxy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ struct proxy_worker {
354354
char disablereuse_set;
355355
apr_interval_time_t conn_timeout;
356356
char conn_timeout_set;
357+
const char *flusher; /* flush provider used by mod_proxy_fdpass */
357358
};
358359

359360
/*

modules/proxy/mod_proxy_fdpass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int proxy_fdpass_handler(request_rec *r, proxy_worker *worker,
194194

195195
{
196196
int status;
197-
const char *flush_method = "flush";
197+
const char *flush_method = worker->flusher ? worker->flusher : "flush";
198198

199199
proxy_fdpass_flush *flush = ap_lookup_provider(PROXY_FDPASS_FLUSHER, flush_method, "0");
200200

0 commit comments

Comments
 (0)