osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62932] New: bug in function proxy_wstunnel_canon preventing functionality of websocket proxy over Unix Domain Sockets


https://bz.apache.org/bugzilla/show_bug.cgi?id=62932

            Bug ID: 62932
           Summary: bug in function proxy_wstunnel_canon preventing
                    functionality of websocket proxy over Unix Domain
                    Sockets
           Product: Apache httpd-2
           Version: 2.4-HEAD
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_wstunnel
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: pavel@xxxxxxxxxx
  Target Milestone: ---

Created attachment 36271
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36271&action=edit
patch for modules/proxy/mod_proxy_wstunnel.c

configuration example:
<Location "/apis">
ProxyPass unix:/var/run/unix.sock|ws://127.0.0.1/api
</Location>

currently ap_proxy_get_worker can't get matched pre-defined worker because of
different uri formatting in proxy_wstunnel_canon and ap_proxy_define_worker

from additionally added logs i see what ap_proxy_get_worker has failed to match

ws://127.0.0.1:80/api/router/proxy AND ws://127.0.0.1/api
and fallback to default (*) proxy worker (which does work because nothing know
about UDS path)

imho this patch should be pushed to trunk also

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx