Skip to content

Support forcing of IPv4/IPv6 resolution. #215

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

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

YaacovHazan
Copy link
Collaborator

Add new --ipv4 (-4) and --ipv6 (-6) command line options to force address resolution.

The default value is unspecified, and we will try resolving both.

Add new --ipv4 (-4) and --ipv6 (-6) command line options
to force address resolution.

The default value is unspecified, and we will try resolving both.
@codecov-commenter
Copy link

codecov-commenter commented Apr 20, 2023

Codecov Report

Merging #215 (b5037c3) into master (d6083ed) will decrease coverage by 0.11%.
The diff coverage is 59.09%.

❗ Current head b5037c3 differs from pull request most recent head 95f9c41. Consider uploading reports for the commit 95f9c41 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
- Coverage   56.97%   56.87%   -0.11%     
==========================================
  Files          21       21              
  Lines        4270     4283      +13     
==========================================
+ Hits         2433     2436       +3     
- Misses       1837     1847      +10     
Impacted Files Coverage Δ
config_types.h 94.11% <ø> (ø)
memtier_benchmark.h 100.00% <ø> (ø)
memtier_benchmark.cpp 52.76% <41.66%> (-0.28%) ⬇️
client.cpp 63.17% <66.66%> (-0.28%) ⬇️
cluster_client.cpp 69.84% <100.00%> (ø)
config_types.cpp 42.51% <100.00%> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@YaacovHazan YaacovHazan requested a review from yossigo April 23, 2023 08:16
@@ -203,6 +205,7 @@ static void config_print_to_json(json_handler * jsonhandler, struct benchmark_co
jsonhandler->write_obj("server" ,"\"%s\"", cfg->server);
jsonhandler->write_obj("port" ,"%u", cfg->port);
jsonhandler->write_obj("unix socket" ,"\"%s\"", cfg->unix_socket);
jsonhandler->write_obj("resolution" ,"\"%s\"", cfg->resolution == AF_UNSPEC ? "Unspecified" : cfg->resolution == AF_INET ? "AF_INET" : "AF_INET6");
Copy link
Contributor

Choose a reason for hiding this comment

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

The name resolution is a bit unclear in this context, I suggest to refer to it as "address family".

yossigo
yossigo previously approved these changes Apr 23, 2023
resolution -> address family
@YaacovHazan YaacovHazan merged commit a1821df into RedisLabs:master Apr 24, 2023
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.

3 participants