Would like to implement WebSocket support
nginx-forum at nginx.us
Wed Feb 29 19:30:47 UTC 2012
Alexandr Gomoliako Wrote:
> On 2/2/12, André Caron <andre.l.caron at gmail.com>
> > NGINX modules. After initial reading, I
> understand that I need to write
> > an Upstream (proxy) handler. Is this correct?
> Not really.
> > The HTTP proxy module has a scary note that
> >> Note that when using the HTTP Proxy Module (or
> even when using FastCGI),
> >> the entire client request will be buffered in
> nginx before being passed on to
> >> the backend proxied servers.
> > Is this a limitation cause by NGINX's
> architecture, or is this by design
> > (e.g. for validation of body against headers,
> It just means that you can't use existing upstream
> modules and
> upstream interface.
> > The bigger problem, however, is that there is no
> standard interface to
> > application servers for this new WebSocket
> protocol. There is some
> > discussion on an Apache enhancement request
> that basically proposes a
> > modification of CGI. Since CGI has already been
> demonstrated to be a
> > performance problem, I'm looking for an
> alternate solution, maybe something
> > closer to SCGI? Anyone have suggestions?
> I think what you need here is a simple protocol
> upgrade functionality
> that switches to tcp proxying for particular
> connection once it
> encounters upgrade in connection header. And
> everything else is up to
> application server.
> So you don't really need to parse websocket
> protocol in nginx unless
> it is your application server.
> nginx mailing list
> nginx at nginx.org
Any progress on this?
I would be very interested in a plugin that brings websocket support.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,221884,223186#msg-223186
More information about the nginx