wangshen2014 / pywebsocket

Automatically exported from code.google.com/p/pywebsocket
0 stars 0 forks source link

Handle CONNECT requests in standalone server #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by ja...@hoppipolla.co.uk on 8 Oct 2014 at 3:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by tyoshino@chromium.org on 4 Nov 2014 at 8:08