-
Notifications
You must be signed in to change notification settings - Fork 83
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
connection to "localhost" fails with IPv4-only web server if machine has IPv4+IPv6 #613
Comments
Trace level logging should dig up [1] what address get used to validate, but I think your theory will turn out to be correct.
[1] https://github.com/envoyproxy/nighthawk/blob/main/source/common/uri_impl.cc#L81 |
Added some advice about |
When there is a URI exception or failing failure predicate, log troubleshooting tips and return the tips in the Nighthawk Service error description. Add a default failure predicate for benchmark.stream_resets > 0, since stream resets usually indicate a misconfigured protocol. NOTE: If you expect stream resets in a benchmark session, run with --failure-predicate benchmark.stream_resets:1000000000 to avoid early termination. Related to #181 and #613. Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
You may get connection failures on some machines.
Sending the load to http://127.0.0.1:12345 does work.
You may have to be using a machine that supports both IPv4 and IPv6
Tentative theory:
That is, the issue could be with how Nighthawk resolves "localhost" on a dual IPv4/IPv6 machine.
The text was updated successfully, but these errors were encountered: