spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

SPDY doesn't appear to be listening and no error when using with Express #358

Closed jrgleason closed 5 years ago

jrgleason commented 5 years ago

I am trying to use SPDY currently this code works...

this.express = express();
....
this.listener = this.express.listen(p, (err)=>{
            if (err){
                throw err;
            }
            return LOGGER.log("info", `listening on ${p}`);
});

But when I try to convert to SPDY with no SSL like this...

        const spdyOpts = {
            plain: true,
            ssl: false
        };
        this.server = spdy.createServer(spdyOpts, this.express)
                          .listen(p, (err)=>{
                              if (err){
                                   LOGGER.log("error", err);
                                   return process.exit(1);
                              }
                              return LOGGER.log("info", `Server is listening on ${p}`);
                          });

I Just get ERR_CONNECTION_RESET. What am I missing here?

jrgleason commented 5 years ago

n/m

         const spdyOpts = {
            spdy:{
                plain: true,
                ssl: false
            }
        };