Open SteveSelva opened 3 months ago
I am using Proxygen as a MITM proxy server. While establishing a WebSocket connection from downstream to upstream, this error occurred. Here, the websocketAcceptKey is stored in downstream from the WebSocket Request. While forwarding the WebSocket Request to upstream, it didn't copy the key and didn't generate the websocketAcceptKey, but its checking whether the websocketAcceptKey is matching the key received from the upstream, which results in this error.
Does Proxygen supports WebSocket over Proxy Communication or the implementation is wrong?
@afrind @jbeshay Can you help with this issue pls.
In Downstream, in HTTP1xCodec.cpp file, the websockAccept is generated from the websockAcceptKey sent from the Browser.
But in Upstream, an error message is thrown and the connection is terminated:
I think the expected Accept value for Websocket is not sent from Downstream to Upstream, so the expected value(
proxygen::HTTP1xCodec::websockAcceptKey_
) is empty in the error log message.Proxygen.v2023.10.30 HTTP1xCodec.cpp LineNo.1147
How to fix this issue?