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

fix(ext/node): http2.createServer #22708

Merged
merged 16 commits into from Mar 7, 2024
Merged

fix(ext/node): http2.createServer #22708

merged 16 commits into from Mar 7, 2024

Conversation

satyarohith
Copy link
Member

Closes #22618

@satyarohith satyarohith marked this pull request as ready for review March 5, 2024 15:03
@@ -165,3 +166,23 @@ Deno.test("[node/http2 client GET https://www.example.com]", async () => {
assertEquals(status, 200);
assert(chunk.length > 0);
});

Deno.test("[node/http2.createServer()]", { sanitizeOps: false }, async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests are timing out when we have two http2.createServer() in the same file. I'm not sure how the tests are processed by Deno.test underneath but I'll explore what's the cause.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous test was timing out because we no longer emit "stream" on a session in the current implement. I replaced the test with the new test instead.

tests/unit/serve_test.ts Outdated Show resolved Hide resolved
@mmastrac
Copy link
Member

mmastrac commented Mar 7, 2024

Looks good to me -- just a windows sanitizer failure left.

This reverts commit 9c79c7e.
@satyarohith
Copy link
Member Author

Looks good to me -- just a windows sanitizer failure left.

I unfortunately don't have a windows machine to investigate this further so I disabled the test on windows for time being. But looking at the error the TCP listener is closed when we call server.close() in the test but not sure why it isn't triggered in windows. I also wonder if it's exposing any bugs in the sanitizer.

Copy link
Member

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@satyarohith satyarohith merged commit 588dd5e into main Mar 7, 2024
17 checks passed
@satyarohith satyarohith deleted the get_node_http2_working branch March 7, 2024 13:58
littledivy pushed a commit that referenced this pull request Mar 8, 2024
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

Successfully merging this pull request may close these issues.

http2.createServer() example doesn't work in deno
2 participants