-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
IPv6 support #1537
Comments
This is not exactly the same as my problem. My case is the problem that when you have a hostname like "localhost" with two addresses (ipv4 and ipv6), k6 tries ipv6 and when it fails it gives up. The default implementation seems to be to try all addresses and to use the first working. Not 100% sure. |
hmm yeah, we should also support that, it's called |
Great, that this issue is placed in v0.27.1. Do you know when v0.27.1 is planned to be released? |
We plan to release v0.27.0 early next week. v0.27.1 means "soon after that", but I can't give you an exact time... I tagged it as v0.27.1 and not as v0.28.0 because we consider this a bug, and a high priority one at that, so we don't need to wait for a full new version to release it. |
We decided to push this back to v0.28.0, as part of #1489. Since that PR also introduces a feature, it's not suitable for a patch release. We're planning more frequent releases now, so v0.28.0 will be a smaller release soon after v0.27.1. If you want just this fix now, it can be compiled from the fix/1537-ipv6 branch. |
This was inadvertently resolved by #1489 |
Sparked by this forum question, my tests in a VM lab show that k6 can't connect to an IPv6 address, even though this is natively supported in Go.
Also see related issue #1109.
Environment
k6 v0.26.2 (2020-03-18T11:45:39+0000/v0.26.2-0-g459da79e, go1.13.8, linux/amd64)
Expected Behavior
k6 can connect to and test against an IPv6 address/host.
Actual Behavior
Several errors are shown instead:
no such host
when trying an IPv6 address in bracket notation because of the port:connect: invalid argument
when trying with a hostname that resolves to an IPv6 address:Note that I can
nc
/curl
the remote service OK, so it is accessible from the test VM:Steps to Reproduce the Problem
python -m http.server --bind ::
) on one VM and create a simple k6 script on the other:k6 run script.js
.I also tried specifying the NIC as in the
nc
/curl
example ([fe80::6f02:cf05:1bc:8883%enp0s3]
), but that fails parsing the URL withinvalid URL escape "%!e(MISSING)n"
, with or without escaping%
.The text was updated successfully, but these errors were encountered: