Skip to content

Conversation

@bryancall
Copy link
Contributor

@bryancall bryancall commented May 2, 2025

Updated testing before this PR: #12248

@bryancall bryancall added this to the 10.2.0 milestone May 2, 2025
@bryancall bryancall self-assigned this May 2, 2025
@bryancall bryancall requested a review from Copilot May 2, 2025 17:03

This comment was marked as outdated.

@bryancall bryancall requested a review from Copilot May 2, 2025 19:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the regex functionality in SSLSNIConfig to use the new Regex class based on PCRE2 instead of legacy PCRE usage. It introduces a move assignment operator and an empty() helper in the Regex class, updates regex compilation and execution in SSLSNIConfig, and removes obsolete PCRE includes.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/tsutil/Regex.cc Added move assignment operator and empty() method; adjusted exec() behavior to update match vector size.
include/tsutil/Regex.h Added declaration for move assignment operator and empty() method.
src/iocore/net/SSLSNIConfig.cc Replaced PCRE API calls with Regex class methods and updated capture groups handling.
include/iocore/net/SSLSNIConfig.h Removed PCRE header inclusion and updated NamedElement's regex member to use Regex.

@bryancall bryancall marked this pull request as draft May 5, 2025 16:00
@bryancall
Copy link
Contributor Author

[approve ci]

@bryancall bryancall marked this pull request as ready for review May 22, 2025 15:06
@bryancall bryancall requested a review from zwoop June 4, 2025 18:46
Copy link
Contributor

@zwoop zwoop left a comment

Choose a reason for hiding this comment

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

Looks good.

@bryancall
Copy link
Contributor Author

[approve ci]

1 similar comment
@bryancall
Copy link
Contributor Author

[approve ci]

@bryancall bryancall merged commit b96659d into apache:master Jul 7, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants