[Varnish] #611: Websockets support

Varnish varnish-bugs at varnish-cache.org
Sun Aug 28 11:43:44 CEST 2011


#611: Websockets support
-------------------------+--------------------------------------------------
 Reporter:  wesnoth      |        Owner:  phk    
     Type:  enhancement  |       Status:  closed 
 Priority:  normal       |    Milestone:         
Component:  varnishd     |      Version:  trunk  
 Severity:  normal       |   Resolution:  invalid
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by jdespatis):

 Just a notice,

 I've coded in fact a websocket server that can handle websocket clients
 (only chrome for now), long polling clients (nearly all the other
 browsers), and telnet clients

 I've tested the connection to my server through varnish (version 3, I've
 not tested with varnish v2), with several settings, each has successfully
 worked! (websocket clients, long polling clients)

 My settings in the vcl was as simple as that (copy from [https://www
 .varnish-cache.org/docs/3.0/tutorial/advanced_backend_servers.html]
 indeed):

 {{{

 backend djserver {
     .host = "192.168.69.45";
     .port = "12345";
 }

 sub vcl_recv {
     if (req.url ~ "^/djserver$") {
         set req.backend = djserver;
         return (pipe);
     } else {
         set req.backend = default;
     }
 }
 }}}


 So wesnoth, if your websocket server doesn't work through varnish, you
 should investigate on your websocket server because it's buggy... or
 problem of configuration of it (but varnish is out of the scope)

 For varnish team: you should claim that varnish has no problem with
 websockets, long polling clients, and update [https://www.varnish-
 cache.org/trac/wiki/Future_Protocols]

 Hope this helps...

-- 
Ticket URL: <http://www.varnish-cache.org/trac/ticket/611#comment:5>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list