You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2020/06/19 17:30:24 UTC
svn commit: r1879000 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Author: ylavic
Date: Fri Jun 19 17:30:24 2020
New Revision: 1879000
URL: http://svn.apache.org/viewvc?rev=1879000&view=rev
Log:
ap_proxy_define_match_worker: disable connection reuse by default.
To avoid compat issues with dns/connection reuse now that a worker with
dollar substitution can be elected.
Modified:
httpd/httpd/trunk/modules/proxy/proxy_util.c
Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1879000&r1=1878999&r2=1879000&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Fri Jun 19 17:30:24 2020
@@ -1962,6 +1962,16 @@ PROXY_DECLARE(char *) ap_proxy_define_ma
}
(*worker)->s->is_name_matchable = 1;
+ if (pdollar) {
+ /* Before ap_proxy_define_match_worker() existed, a regex worker
+ * with dollar substitution was never matched against the actual
+ * URL thus the request fell through the generic worker. To avoid
+ * dns and connection reuse compat issues, let's disable connection
+ * reuse by default, it can still be overwritten by an explicit
+ * enablereuse=on.
+ */
+ (*worker)->s->disablereuse = 1;
+ }
return NULL;
}