Closed igrigorik closed 12 years ago
Connection doesn't emit connect
event AFAIK. And this event should occur on the stream level if I understand your aim correctly.
Hmm, well it does seem to work correctly here with this patch (vs not :)). I'll admit to being new to node though, so any tips or suggestions are definitely welcome!
Can you post code that works with that patch and doesn't without it as gist or inline here?
function handleConnect(res, socket) {
console.log("never fires");
}
var server = spdy.createServer(options);
server.on("request", handleRequest);
server.on("connect", handleConnect);
server.listen(44300);
That's basically it.
Confirmed, merged. Thanks! :)
Related to #48. Need to emit this to enable SPDY proxy / secure tunnel use cases.