For web-platform-tests we are using pywebsocket to handle websockets requests.
This works fine in many situations, but for various reasons, in the Mozilla
setup we don't change the DNS settings (e.g. via /etc/hosts) but instead use an
autoproxy file to, in effect, reroute requests from web-platform.test to
localhost.
With pywebsocket this is a problem because a proxied request requires an
initial CONNECT that currently can't be handled without adding a seperate proxy
into the mix; something I am keen to avoid. To handle it in a way that solves
this use case in pywebsocket itself just requires using HTTP 1.1 and adding
code that responds to CONNECT with 200 and keeps the connection open.
Original issue reported on code.google.com by ja...@hoppipolla.co.uk on 8 Oct 2014 at 3:20
Original issue reported on code.google.com by
ja...@hoppipolla.co.uk
on 8 Oct 2014 at 3:20