Re: websocket support in WSGI

Alex Grönholm <alex.gronholm-S2Gd0AnZGk/[email protected]> Mon, 21 May 2012 15:36:11 +0300
Newsgroups gmane.comp.python.web
Message-ID <[email protected]>
20.05.2012 15:12, Damjan kirjoitti:
> Recently I was enquiring about the possibility to implement websocket 
> as a WSGI middleware, but I learned that to do that the middleware 
> would need access to the underlying socket.
>
> Has there been any thought about this? A wsgi addendum perhaps?
>
>
>
This has been discussed before and it's impossible to implement since 
proxying such things does not work over a number of protocols (FCGI, 
SCGI). IIRC, the front-end web server likes to send its own 1xx response 
before the application has a chance to send its own. The original 
discussion was about implement WebDAV, but WebSocket has the same issues.
_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org