Re: [nodejs] HTTPS, NPN, freeParser

2013-12-17 Thread Fedor Indutny
Hello! Yes, this is possible. But you'll need to remove either `request` or `connection` event handler (I prefer latter one), save it, and call it if the HTTPS handler should be activated. That's how I do it in node-spdy: https://github.com/indutny/node-spdy/blob/master/lib/spdy/server.js#L91

Re: [nodejs] HTTPS, NPN, freeParser

2013-12-17 Thread Joran Greef
Thank you Fedor, I had looked through your code already and had tried just removeAllListeners() without passing an argument. I will try passing secureConnection in as an argument instead. Joran -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] HTTPS, NPN, freeParser

2013-12-16 Thread Joran Dirk Greef
I have an HTTPS server that handles HTTPS and WebSocket traffic. I would like to use this same server to handle an additional TCP-based protocol and would like to do this using NPN rather than Upgrade, to save RTT. I tried using NPNProtocols as a server option and then listening for the