-
- Downloads
ws proxy: also proxy h1 ws to h1 and h2
lws has been able to proxy h2 or h1 inbound connections to an h1 onward connection for a while now. It's simple to use just build with LWS_WITH_HTTP_PROXY and make a mount where the origin is the onward connection details. Unix sockets can also be used as the onward connection. This patch extends the support to be able to also do the same for inbound h2 or h1 ws upgrades to an h1 ws onward connection as well. This allows you to offer completely different services in a common URL space, including ones that connect back by ws / wss.
Showing
- lib/core-net/close.c 1 addition, 1 deletionlib/core-net/close.c
- lib/core-net/dummy-callback.c 138 additions, 1 deletionlib/core-net/dummy-callback.c
- lib/core-net/private.h 2 additions, 0 deletionslib/core-net/private.h
- lib/core-net/vhost.c 19 additions, 3 deletionslib/core-net/vhost.c
- lib/roles/h2/http2.c 24 additions, 10 deletionslib/roles/h2/http2.c
- lib/roles/http/private.h 4 additions, 0 deletionslib/roles/http/private.h
- lib/roles/http/server/server.c 169 additions, 125 deletionslib/roles/http/server/server.c
- lib/roles/ws/client-parser-ws.c 1 addition, 1 deletionlib/roles/ws/client-parser-ws.c
- lib/roles/ws/client-ws.c 5 additions, 0 deletionslib/roles/ws/client-ws.c
- lib/roles/ws/ops-ws.c 5 additions, 3 deletionslib/roles/ws/ops-ws.c
- lib/roles/ws/private.h 12 additions, 0 deletionslib/roles/ws/private.h
- lib/roles/ws/server-ws.c 174 additions, 133 deletionslib/roles/ws/server-ws.c
Loading
Please register or sign in to comment