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

h2c server always runs in echo-basic container, even if not being tested #3594

Open
candita opened this issue Feb 4, 2025 · 2 comments · May be fixed by #3613
Open

h2c server always runs in echo-basic container, even if not being tested #3594

candita opened this issue Feb 4, 2025 · 2 comments · May be fixed by #3613
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@candita
Copy link
Contributor

candita commented Feb 4, 2025

What happened:
Small flaw in conformance test container echo-basic. It always runs the h2c server, even if that isn't being tested in the echo-basic container.

What you expected to happen:
Only run the h2c server if there is an H2C_PORT configured in the environment.

How to reproduce it (as minimally and precisely as possible):
Start the echo-basic container (run any test that makes an http request). Look at the logs of the pod containing echo-basic container, and you will see the log:

Starting server, listening on port 3001 (h2c)

Anything else we need to know?:
The same story goes for the http server, but it is almost always used by tests, whereas h2c server is rarely used.
The https server is only run if TLS_SERVER_CERT or TLS_SERVER_PRIVKEY are available in the environment.
Good first issue in the conformance area, get to learn about echo-basic and how it works with the conformance tests and yaml.

@candita candita added the kind/bug Categorizes issue or PR as related to a bug. label Feb 4, 2025
@EyalPazz
Copy link
Contributor

/assign

@dprotaso
Copy link
Contributor

What's the harm in running the h2c server on a second port?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants