You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if we connect to a HTTP/1 server using HTTP/2 the session and the stream are not emitting an error.
Here is a test:
'use strict'constcommon=require('../common');if(!common.hasCrypto)common.skip('missing crypto');constassert=require('assert');consthttp2=require('http2');consthttp=require('http');constnet=require('net');constserver=http.createServer(handle);functionhandle(req,res){common.fail('the http server should not get any request')}server.listen(0,function(){server.unref();{constclient=http2.connect(`http://localhost:${server.address().port}`);client.on('connect',function(){console.log('session connect')})client.on('close',function(){console.log('session close')})client.socket.on('error',console.log)constreq=client.request({':path': '/',':method': 'GET'});req.on('abort',function(){console.log('abort')})req.on('streamClosed',(code)=>{console.log('streamClosed',code);});req.on('error',common.mustCall((err)=>{assert(err);}));}});
The text was updated successfully, but these errors were encountered:
Currently if we connect to a HTTP/1 server using HTTP/2 the session and the stream are not emitting an error.
Here is a test:
The text was updated successfully, but these errors were encountered: