summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy_uwsgi.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2019-05-17 10:42:17 +0200
committerYann Ylavic <ylavic@apache.org>2019-05-17 10:42:17 +0200
commit975f5e109532cf254907e090525666e777a292b5 (patch)
treefc1ca30e1924f986365be17a23ae851c4ebb1152 /modules/proxy/mod_proxy_uwsgi.c
parentmod_proxy/ssl: Proxy SSL client certificate (diff)
downloadapache2-975f5e109532cf254907e090525666e777a292b5.tar.xz
apache2-975f5e109532cf254907e090525666e777a292b5.zip
Follow up to r1859371: extend to other ap_proxy_connection_create[_ex]() users.
This function now now handles SSL reuse as well as the "proxy-request-hostname" note (SNI), so let's also call it unconditionnaly in all proxy modules. On the mod_ssl side, since this note has the lifetime of the connection, don't reset/unset it during handshake (ssl_io_filter_handshake). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1859422 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_proxy_uwsgi.c')
-rw-r--r--modules/proxy/mod_proxy_uwsgi.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/proxy/mod_proxy_uwsgi.c b/modules/proxy/mod_proxy_uwsgi.c
index 6f33e196d7..bce4fc21b8 100644
--- a/modules/proxy/mod_proxy_uwsgi.c
+++ b/modules/proxy/mod_proxy_uwsgi.c
@@ -509,12 +509,10 @@ static int uwsgi_handler(request_rec *r, proxy_worker * worker,
}
/* Step Three: Create conn_rec */
- if (!backend->connection) {
- if ((status = ap_proxy_connection_create(UWSGI_SCHEME, backend,
- r->connection,
- r->server)) != OK)
- goto cleanup;
- }
+ if ((status = ap_proxy_connection_create(UWSGI_SCHEME, backend,
+ r->connection,
+ r->server)) != OK)
+ goto cleanup;
/* Step Four: Process the Request */
if (((status = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR)) != OK)