mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Document the removal of the flushing bandaid to a
runtime param. Since other protocols might benefit from this, remove the ajp_ prefixes, to make it more generic looking. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@390210 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -218,25 +218,25 @@ static const char *set_worker_param(apr_pool_t *p,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!strcasecmp(key, "ajpflushpackets")) {
|
||||
else if (!strcasecmp(key, "flushpackets")) {
|
||||
if (!strcasecmp(val, "on"))
|
||||
worker->ajp_flush_packets = ajp_flush_on;
|
||||
worker->flush_packets = flush_on;
|
||||
else if (!strcasecmp(val, "off"))
|
||||
worker->ajp_flush_packets = ajp_flush_off;
|
||||
worker->flush_packets = flush_off;
|
||||
else if (!strcasecmp(val, "auto"))
|
||||
worker->ajp_flush_packets = ajp_flush_auto;
|
||||
worker->flush_packets = flush_auto;
|
||||
else
|
||||
return "FlushPackets must be On|Off|Auto";
|
||||
return "flushpackets must be on|off|auto";
|
||||
}
|
||||
else if (!strcasecmp(key, "ajpflushwait")) {
|
||||
else if (!strcasecmp(key, "flushwait")) {
|
||||
ival = atoi(val);
|
||||
if (ival > 1000 || ival < 0) {
|
||||
return "AJPFlushWait must be <= 1000, or 0 for system default of 10 millseconds.";
|
||||
return "flushwait must be <= 1000, or 0 for system default of 10 millseconds.";
|
||||
}
|
||||
if (ival == 0)
|
||||
worker->ajp_flush_wait = AJP_FLUSH_WAIT;
|
||||
worker->flush_wait = PROXY_FLUSH_WAIT;
|
||||
else
|
||||
worker->ajp_flush_wait = ival * 1000; /* change to microseconds */
|
||||
worker->flush_wait = ival * 1000; /* change to microseconds */
|
||||
}
|
||||
else {
|
||||
return "unknown Worker parameter";
|
||||
|
Reference in New Issue
Block a user