Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Description
- Version: v10.9.0
- Platform: Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
- Subsystem: HTTP2
Code sample:
consthttp2=require('http2')constserver=http2.createServer()server.on('stream',(stream,headers)=>{stream.pushStream({':path': '/test'},(err,pushStream)=>{if(err)throwerrpushStream.end('pushed some data')})stream.end('some data')})server.listen(8080,()=>{letclient=http2.connect('http://localhost:8080')letreq=client.request({':path': '/'})req.on('data',(data)=>{console.log(data.toString('utf8'))})client.on('stream',(pushedStream)=>{console.log('on stream')pushedStream.on('aborted',()=>{console.log('aborted')})pushedStream.on('end',()=>{console.log('end')})pushedStream.on('data',(data)=>{console.log(data.toString('utf8'))})})})Output:
on stream some data pushed some data end aborted Expectation:
aborted event is not fired
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.