Skip to content
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

Logging use of alpn-boot vs. tcnative jar. #508

Merged
merged 1 commit into from
Oct 12, 2015

Conversation

sduskis
Copy link
Contributor

@sduskis sduskis commented Oct 12, 2015

There are a few issues related to using the tcnative jar. This one is about logging the use of tcnative or alpn-boot.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 12, 2015
if (OpenSsl.isAvailable()) {
LOG.info("gRPC is using the OpenSSL provider (tcnactive jar)");
} else {
LOG.info("gRPC is using the JDK provder (alpn-boot jar)");
Copy link
Contributor

Choose a reason for hiding this comment

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

"JDK provider"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks.

sslBuilder = createGrpcSslBuilder();
sslBuilder = GrpcSslContexts.forClient().ciphers(null);
if (OpenSsl.isAvailable()) {
LOG.info("gRPC is using the OpenSSL provider (tcnactive jar)");
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to log this multiple times? If not, we can log in performWarmup().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's a request to have a parameter of some sort to use a programatic configuration of openSSL vs. boot jar (#506). I think per connection is better for that case. If you're OK with it, let's keep it here pending the fix for #506

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I am fine with it. Per connection is OK.

@kevinsi4508
Copy link
Contributor

LGTM

sduskis added a commit that referenced this pull request Oct 12, 2015
Logging use of alpn-boot vs. tcnative jar.
@sduskis sduskis merged commit 7229f92 into googleapis:master Oct 12, 2015
@sduskis sduskis deleted the log_tcnative branch October 15, 2015 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants