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.createServer() example doesn't work in deno #22618

Closed
satyarohith opened this issue Feb 28, 2024 · 0 comments · Fixed by #22708
Closed

http2.createServer() example doesn't work in deno #22618

satyarohith opened this issue Feb 28, 2024 · 0 comments · Fixed by #22708
Assignees
Labels
bug Something isn't working correctly node API Related to various "node:*" modules APIs node compat

Comments

@satyarohith
Copy link
Member

The following example hangs in Deno when you send a http2 request using curl.

import http2 from "node:http2";

const server = http2.createServer((req, res) => {
  res.setHeader("Content-Type", "text/html");
  res.setHeader("X-Foo", "bar");
  res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" });
  res.end("ok");
});

server.listen(8000);
curl --http2-prior-knowledge http://localhost:8000

The request hangs with deno but not with node.

@satyarohith satyarohith added node compat bug Something isn't working correctly labels Feb 28, 2024
@satyarohith satyarohith self-assigned this Mar 4, 2024
@bartlomieju bartlomieju added the node API Related to various "node:*" modules APIs label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node API Related to various "node:*" modules APIs node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants