Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP2 client stream does not emit the end event #32412

Closed
szmarczak opened this issue Mar 21, 2020 · 1 comment
Closed

HTTP2 client stream does not emit the end event #32412

szmarczak opened this issue Mar 21, 2020 · 1 comment

Comments

@szmarczak
Copy link
Member

szmarczak commented Mar 21, 2020

  • Version: v13.11.0
  • Platform: Windows 10 1909 18393.720
  • Subsystem: http2

What steps will reproduce the bug?

const http2 = require('http2');

http2.createServer((request, response) => {
	console.log('server - end');
	response.end('asdf'); // Delete 'asdf' and it will work
}).listen(8080, () => {
	const session = http2.connect('http://localhost:8080');
	const request = session.request();

	request.once('end', () => {
		console.log('client - end');
	});
});

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior?

server - end
client - end

What do you see instead?

server - end

Additional information

Possible duplicate of #31309 (created 11 January). I decided to create a new issue since it started happening on my side for Node.js >= 13.9.0. It works as expected on 13.8.0.

@szmarczak
Copy link
Member Author

Ah sorry I forgot that I need to read the stream first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant