]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy: factorize mod_proxy_{connect,wstunnel} tunneling code in proxy_util.
authorYann Ylavic <ylavic@apache.org>
Sun, 3 Nov 2019 15:48:53 +0000 (15:48 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 3 Nov 2019 15:48:53 +0000 (15:48 +0000)
commit641102d747ca7f5445ed9fc4abc2528c9a1dae09
tree1d2cd962b4df0ca0afef4d8e31d8fcb23b6c6a41
parentd8888c394cf0adc261322e1746368b85d493c663
mod_proxy: factorize mod_proxy_{connect,wstunnel} tunneling code in proxy_util.

This commit adds struct proxy_tunnel_rec that contains the fields needed for a
poll() loop through the filters chains, plus functions ap_proxy_tunnel_create()
and ap_proxy_tunnel_run() to respectively initialize a tunnel and (re)start it.

Proxy connect and wstunnel modules now make use of this new API to avoid
duplicating logic and code.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869338 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
docs/log-message-tags/next-number
include/ap_mmn.h
modules/proxy/mod_proxy.h
modules/proxy/mod_proxy_connect.c
modules/proxy/mod_proxy_wstunnel.c
modules/proxy/proxy_util.c