Version : v14.2.0
Platform : Linux solus 5.6.4-152.current deps: update openssl to 1.0.1j #1 SMP PREEMPT Mon Apr 20 03:18:11 UTC 2020 x86_64 GNU/Linux
Subsystem : http2
What steps will reproduce the bug?
const http2 = require ( 'http2' ) ;
const tls = require ( 'tls' ) ;
const options = {
ALPNProtocols : [ 'h2' ] ,
host : 'nghttp2.org' ,
servername : 'nghttp2.org' ,
port : 443 ,
settings : { }
} ;
tls . _connect = tls . connect ;
/*
tls.connect = (...args) => {
console.log(...args, args[1].toString());
return tls._connect(...args);
};
*/
const socket = tls . _connect ( options , ( ) => {
console . log ( 'Connected!' ) ;
const session = http2 . connect ( 'https://nghttp2.org' , {
createConnection : ( ) => socket
} ) ;
session . once ( 'remoteSettings' , ( ) => {
console . log ( 'Received remote settings!' ) ;
} ) ;
} ) ;
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
Connected!
Received remote settings!
What do you see instead?
Additional information
Reference: #16256