Fix clients reconnect with SSL by disabling SSL tickets #4537
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.
Issue description
Having SSL session tickets enabled can lead to failed SSL handshakes when the client tries to reuse a previously issued session ticket. Some clients, like for example, MySQL > 8.0.29, attempt session reuses during reconnect operations.
Solution
SSL sessions resume/tickets aren't supported right now, we should explicitly disable them. This will prevent the generation of this unused and potentially faulty session tickets.
PR details
This PR also introduces some major changes for TAP tests:
Aside of these, also multiple minor changes have also been introduced in the TAP tests compilation to reduce their size and increase compilation speed:
std::regex
as a dependency, this should be avoided in the future.nlohmann::json
. This library imposes significant pre-processing overhead when included in every object file.