Skip to content

feat(wish): make it able to run both TLS and non-TLS benchmark#29

Merged
tyoshino merged 1 commit intomainfrom
takeshi/wish
Mar 23, 2026
Merged

feat(wish): make it able to run both TLS and non-TLS benchmark#29
tyoshino merged 1 commit intomainfrom
takeshi/wish

Conversation

@tyoshino
Copy link
Copy Markdown
Collaborator

No description provided.

check=True,
)

if certs_dir:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

need to send certs, too

Comment on lines +29 to +32
ABSL_FLAG(std::string, ca_cert, "certs/ca.crt", "Path to CA certificate");
ABSL_FLAG(std::string, client_cert, "certs/client.crt",
"Path to client certificate");
ABSL_FLAG(std::string, client_key, "../certs/client.key",
ABSL_FLAG(std::string, client_key, "certs/client.key",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

adjusting the default path

Comment on lines +104 to +107
int result = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &nodelay, sizeof(nodelay));
if (result != 0) {
LOG(FATAL) << "setsockopt(TCP_NODELAY) failed";
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

added return value check using this opportunity


if (!server.Init()) {
std::cerr << "Failed to initialize server" << std::endl;
LOG(ERROR) << "Failed to initialize server";
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

switched to abseil logging library using this opportunity

Comment on lines +4 to +7
#include <netinet/tcp.h>

#include <cstring>
#include <iostream>
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

automated reordering to comply with the Google C++ Style Guide

@tyoshino tyoshino requested a review from wenbozhu March 23, 2026 08:11
@tyoshino tyoshino merged commit 1f49637 into main Mar 23, 2026
2 checks passed
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.

1 participant