Skip to content

Conversation

@zwoop
Copy link
Contributor

@zwoop zwoop commented Aug 12, 2022

This should allow for much more efficient IP address checks, rather than having to convert IPs to strings (multiple times) and do string comparisons.

Jeff E. suggested we ought to generalize the notion of "ranges" in matching here, but I'd like to leave that for a future addition.

@zwoop zwoop added the Plugins label Aug 12, 2022
@zwoop zwoop added this to the 10.0.0 milestone Aug 12, 2022
@zwoop zwoop requested review from bneradt and elsloo August 12, 2022 20:18
@zwoop zwoop self-assigned this Aug 12, 2022
@zwoop
Copy link
Contributor Author

zwoop commented Aug 12, 2022

This is only lightly tested for now. I'm mostly sticking to the existing code patterns in header_rewrite, so no bike shedding without looking what the existing code already does. :).

@ezelkow1
Copy link
Member

[approve ci]

2 similar comments
@ezelkow1
Copy link
Member

[approve ci]

@traeak
Copy link
Contributor

traeak commented Aug 12, 2022

[approve ci]

@masaori335
Copy link
Contributor

[approve ci autest]

@zwoop
Copy link
Contributor Author

zwoop commented Aug 22, 2022

[approve ci autest]

1 similar comment
@ezelkow1
Copy link
Member

[approve ci autest]

@zwoop
Copy link
Contributor Author

zwoop commented Aug 31, 2022

[approve ci autest]

@zwoop zwoop merged commit c58edbb into apache:master Aug 31, 2022
@zwoop zwoop deleted the HRWIpRanges branch August 31, 2022 17:49
zwoop added a commit that referenced this pull request Aug 31, 2022
* Adds efficient IP range matching to HRW conditions

* Changes to use the native TextView parser

* Fixes typo in docs

* Undo the hack around macos builds failing

* Adds failure checks from IP range parsing

(cherry picked from commit c58edbb)
@zwoop
Copy link
Contributor Author

zwoop commented Aug 31, 2022

Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Aug 31, 2022
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
* asf/9.2.x:
  Updated ChangeLog
  Adds efficient IP range matching to HRW conditions (apache#9031)
  Test: add nameserver to proxy_serve_stale test (apache#9059) (apache#9070)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants