Hi.<div><br></div><div>We're messing around with websockets these days (for the varnish mgmt console). So, in varnish we end up detecting an upgrade and doing return(pipe) for the connections. It works well on the scale we are using it. However, if we where to handle 100k concurrent users there would have to be 100k threads to handle it which would take a fair bit of resources doing silly bit-shuffling. </div>

<div><br></div><div>Would it make sense just to splice the connections in vcl_pipe? We'd still need to keep an eye on the connection for book-keeping, handling errors and such so we'd still probably need a thread looking after all of the connections.</div>

<div><br></div><div>Does it makes sense? Is it premature to do such optimization now?</div><div><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer, CEO<br>

Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>
</div>