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

Allow OkHttp client to start when TLS is not configured #1582

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

randomanderson
Copy link
Contributor

When TLS was not configured in the JVM, the OkHttp client failed to start with java.lang.AssertionError: No System TLS despite the fact that we don't use TLS to communicate with the agent.

This change fixes that issue by limiting the OkHttp client to http only.

Tests are added for this case. I also added a check to the base CLI test to make sure traces are actually sent (similar to the OT smoketests)

@randomanderson randomanderson requested a review from a team as a code owner June 12, 2020 16:07
@randomanderson randomanderson changed the title Allow OkHttp to start when TLS is not configured Allow OkHttp client to start when TLS is not configured Jun 12, 2020
@randomanderson randomanderson merged commit 7a66281 into master Jun 12, 2020
@randomanderson randomanderson deleted the landerson/no-tls branch June 12, 2020 16:58
@github-actions github-actions bot added this to the 0.55.0 milestone Jun 12, 2020
cimi added a commit that referenced this pull request Jun 15, 2020
Please see #1582 for the equivalent configuration in the trace agent.

> When TLS was not configured in the JVM, the OkHttp client failed to
> start with java.lang.AssertionError: No System TLS despite the fact
> that we don't use TLS to communicate with the agent.

> This change fixes that issue by limiting the OkHttp client to http
> only.
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.

None yet

3 participants