[PATCH] websockets support for uwsgi protocol

Maxim Dounin mdounin at mdounin.ru
Wed Feb 20 13:50:54 UTC 2013


(Cc'd nginx-devel@ as this is better list for this discussion.)

On Wed, Feb 20, 2013 at 02:30:38PM +0100, Roberto De Ioris wrote:

> Hi, the (tiny) attached patch enable support for new websockets handling
> when the uwsgi protocol is used instead of HTTP.
> I have tested it with various websocket libraries and with the api
> available in uWSGI 1.9.
> From 1.9 sources (with nginx pointing to uwsgi port 3031):
> ./uwsgi -s :3031 -w tests.websockets_echo --gevent 10
> no additional configuration is needed for nginx

Should we also do the same for SCGI?

I personally think it is more or less the same for all CGI-based 
protocols, and the only problematic one is FastCGI, which probably 
still needs wrapping within FCGI_STDIN/FCGI_STDOUT records instead 
of real connection upgrade.

Maxim Dounin

More information about the nginx mailing list