-
Notifications
You must be signed in to change notification settings - Fork 4
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
RDMA bind local address #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nits
9314f6f
to
7ff33d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lines like
snprintf(_port, 6, "%d", port);
Could be
snprintf(_port, sizeof(_port), "%d", port);
But I don't think it matters as sizeof("65536")
isn't changing any time soon 😄
Use RDMA style function instead of inet style for getting address. Also simplify error handling. Signed-off-by: zhenwei pi <[email protected]>
Like TCP, it's possible to bind a specific address for client side. Currently, RDMA binding local address is supported by test program manually. Signed-off-by: zhenwei pi <[email protected]>
"Resource temporarily unavailable" is required by client_test program, use the same log meesage for RDMA. Signed-off-by: zhenwei pi <[email protected]>
Since a7cbca40661("RDMA: Support .is_local method (#1089)"), valkey starts to support local connection. Valkey server and client run on a single server, protected mode is not required. Signed-off-by: zhenwei pi <[email protected]>
7ff33d1
to
3a9cf55
Compare
Hi @michael-grunder |
Looks good, thanks! |
Hi @michael-grunder @bjosv
Each patch has independent functionality, also been tested by CI and local commands, so request no-squash merge for this PR.