]> granicus.if.org Git - apache/commitdiff
mod_proxy_wstunnel: we want to detect whether some response was sent to
authorYann Ylavic <ylavic@apache.org>
Tue, 26 Jul 2016 17:50:34 +0000 (17:50 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 26 Jul 2016 17:50:34 +0000 (17:50 +0000)
the client when forwarding data from the backend to the client, not the
reverse.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754164 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_wstunnel.c

index 1c0a01b47fc96e7e77501e4e0f71396c639b6fc0..8b6c12c08c7c92a34360d9ccec527ab441402d53 100644 (file)
@@ -89,7 +89,8 @@ static int proxy_wstunnel_pump(ws_baton_t *baton, apr_time_t timeout, int try_po
                             "backend was readable");
                     done |= ap_proxy_transfer_between_connections(r, backconn,
                                                                   c, bb_i, bb_o,
-                                                                  "backend", NULL,
+                                                                  "backend",
+                                                                  &replied,
                                                                   AP_IOBUFSIZE,
                                                                   0)
                                                                  != APR_SUCCESS;
@@ -113,8 +114,7 @@ static int proxy_wstunnel_pump(ws_baton_t *baton, apr_time_t timeout, int try_po
                             "client was readable");
                     done |= ap_proxy_transfer_between_connections(r, c, backconn,
                                                                   bb_o, bb_i,
-                                                                  "client",
-                                                                  &replied,
+                                                                  "client", NULL,
                                                                   AP_IOBUFSIZE,
                                                                   0)
                                                                  != APR_SUCCESS;