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

chore: refactor test_server and move to rustls-tokio-stream #21117

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Nov 8, 2023

Remove tokio-rustls as a direct dependency of Deno and refactor test_server to reduce code duplication.

All tcp and tls listener paths go through the same streams now, with the exception of the simpler Hyper http-only handlers (those can be done in a later follow-up).

Minor bugs fixed:

  • gRPC server should only serve h2
  • WebSocket over http/2 had a port overlap
  • Restored missing eye-catchers for some servers (still missing on Hyper ones)

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

Please add ci-bench and rerun just for good measure

@mmastrac
Copy link
Contributor Author

mmastrac commented Nov 8, 2023

Will do. Just doing a little follow-on refactoring first.

@mmastrac mmastrac added the ci-bench put this on a PR to run the benchmarks label Nov 8, 2023
@mmastrac mmastrac changed the title chore: move test_server to rustls-tokio-stream chore: refactor test_server and move to rustls-tokio-stream Nov 8, 2023
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, very nice 👍

@mmastrac mmastrac merged commit 02c5f49 into denoland:main Nov 8, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-bench put this on a PR to run the benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants