-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
I am unable to established a wss connection using async-http-client using either the netty or the grizzly async handler, when connecting through a proxy server. In the netty case What appears to happen is that NettyAsyncHttpProvider issues a connect request to the proxy, however the next request, which I would expect to be the upgrade request is not correct.
The logs look like
DefaultHttpRequest(chunked: false)
CONNECT 192.168.1.124:443 HTTP/1.0
Upgrade: WebSocket
Connection: Upgrade
Origin: http://192.168.1.124:443
Sec-WebSocket-Key: y3xU3BMOqCn6b3JBwKtEVA==
Sec-WebSocket-Version: 13
Host: 192.168.1.124
Proxy-Connection: keep-alive
Accept: /
User-Agent: NING/1.0
using Channel
[id: 0x38827968]
WebSocket Closed
The important piece being that there is no GET between the CONNECT and the Upgrade:WebSocket. It's also not clear if it's reading the response from the proxy server before sending the https request. It appears that the websocket is closed when a HTTP/1.0 200 Connection established is received from the proxy server, which is intrepreted as an invalid response.