DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43308>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43308 ------- Additional Comments From [EMAIL PROTECTED] 2007-09-04 23:34 ------- Created an attachment (id=20771) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20771&action=view) Patch against httpd 2.2.4 The attached patch adds new workers on the fly as new backends for which no worker exists are identified. This can happen if a RewriteRule proxies a request (with the [P] flag), and the backend URL does not match any of the ProxyPass' second argument (URL). 1. New workers are created for scheme://address/. The URL path is ignored. One might want to add a new configuration directive for specifying the number of path elements to include in the worker name. 2. The request for which the worker is created is served using the default worker. The connection pool for the new worker is then only populated on the first request matching the new worker (the 2nd request), and an existing connection may only be reused from the following request on. 3. There is no way to tune the connection pooling of the workers created on-the-fly. 4. One might want to add a new configuration directive for (de-)activating this mechanism Regarding the implementation details, being a novice to Apache development, I look forward to your comments. However i) PROXY_COPY_CONF_PARAMS should probably be moved to mod_proxy.h to avoid duplication of code ii) I allocate a copy of the URL on the stack rather than out of the pool since as far as I could see, it is duplicated in ap_proxy_add_worker() anyway iii) Someone skilled in the art of Apache httpd development could probably come up with a way that the newly created worker could be used immediately instead of having to wait for the next request. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
