-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Open
Labels
http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Description
Not 100% sure how to http1 compat works but this looks suspicious:
import http2 from 'node:http2'
import https from 'node:https'
import { readFileSync } from 'node:fs'
const server = http2.createSecureServer({
key: readFileSync('../proxy/cert/server.key'),
cert: readFileSync('../proxy/cert/server.crt'),
allowHTTP1: true,
})
.on('request', (req, res) => {
console.log(req.httpVersion, server.keepAliveTimeout, server.keepAliveTimeoutBuffer) // 1.1 undefined undefined
})
.listen(9999)
https.get('https://localhost:9999', { rejectUnauthorized: false }, (res) => {
res.end()
})Metadata
Metadata
Assignees
Labels
http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.