Skip to content

Fix SSL tests that use SslProvider.OPENSSL_REFCNT#9649

Merged
normanmaurer merged 1 commit into4.1from
ssl_refcnt_test_fix
Oct 10, 2019
Merged

Fix SSL tests that use SslProvider.OPENSSL_REFCNT#9649
normanmaurer merged 1 commit into4.1from
ssl_refcnt_test_fix

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

031c2e2 introduced some change to reduce the risk of have the ReferenceCountedOpenSslContext be destroyed while the ReferenceCountedSslEngine is still in us. Unfortunaly it missed to adjust a few tests which make assumptions about the refCnt of the context.

Modifications:

Adjust tests to take new semenatics into acount.

Result:

No more tests failures

Motivation:

031c2e2 introduced some change to reduce the risk of have the `ReferenceCountedOpenSslContext` be destroyed while the `ReferenceCountedSslEngine` is still in us. Unfortunaly it missed to adjust a few tests which make assumptions about the refCnt of the context.

Modifications:

Adjust tests to take new semenatics into acount.

Result:

No more tests failures
@normanmaurer normanmaurer added this to the 4.1.43.Final milestone Oct 9, 2019
Copy link
Copy Markdown
Contributor

@bryce-anderson bryce-anderson left a comment

Choose a reason for hiding this comment

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

lgtm. I'm curious, how did the original patch pass CI?

@normanmaurer
Copy link
Copy Markdown
Member Author

@vkostyukov for whatever reason it did not execute the native related tests... looking into it. That said it failed when using netty-tcnative-boringssl-static

@normanmaurer normanmaurer merged commit 35862ca into 4.1 Oct 10, 2019
@normanmaurer normanmaurer deleted the ssl_refcnt_test_fix branch October 10, 2019 06:58
normanmaurer added a commit that referenced this pull request Oct 10, 2019
Motivation:

031c2e2 introduced some change to reduce the risk of have the `ReferenceCountedOpenSslContext` be destroyed while the `ReferenceCountedSslEngine` is still in us. Unfortunaly it missed to adjust a few tests which make assumptions about the refCnt of the context.

Modifications:

Adjust tests to take new semenatics into acount.

Result:

No more tests failures
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.

4 participants