Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DISCLAIMER: this is a silly monkey-patching-like attempt to resolve #769
That change might make this particular test nonsense, but I will try to share my insights about it.
Prerequisites
Let us introduce the following notation:
Test suite says:
What is the
SSLSession#getPacketBufferSize?According to the docs:
So what?
When the
contentLengthgets closer or goes beyond the value ofpacketSize– we get a failed test. The default value ofpacketSizeis equal to '16709' on the JDK 17. In that particular test, we setSSLStage#maxWriteto 100. So, my hypothesis is if we adjust the value ofcontentLegthto be greater thanSSLStage#maxWriteand less thanpacketSizewe should preserve the sense of the test suite.Behind the scenes
Nonetheless, I have no idea why this test become broken. 🤷🏻