senchalabs/connect — Issue #459: vhost + socket.io
Author: PhilWaldmann
Created: 2012-01-15 20:36:02+00:00
State: open

Hi,

there is a problem with socket.io and connect vhosts. (or any other library which listen to the `upgrade` event).

all vhosts will receive `request` events, but no `upgrade` events!
I think all events should be emitted to the appropriate vhost, right?

You can reproduce the problem by creating a simple vhost and let socket.io listen on that vhost. It will take about 5 seconds to get socket.io connected, because it will fall back to xhr polling instead of websockets (which will timeout, because the vhost will never receive an `upgrade` event)