Closed as not planned
Description
Testing node's new http2 native module I couldn't get express to serve requests over http2,
Using node master build with --expose-http2
flag:
const express = require('express');
const app = express();
app.get('/express', (req, res) => {
res.send('Hello from express');
});
const server = http2.createSecureServer({
key,
cert
}, app);
When requesting /express the server crashed with the following error:
(node:80731) ExperimentalWarning: The http2 module is an experimental API.
_http_incoming.js:104
if (this.socket.readable)
^
TypeError: Cannot read property 'readable' of undefined
at IncomingMessage._read (_http_incoming.js:104:18)
at IncomingMessage.Readable.read (_stream_readable.js:431:10)
at IncomingMessage.read (_http_incoming.js:96:15)
at resume_ (_stream_readable.js:811:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)