Skip to content

Commit

Permalink
perf(ssl): break out right after sni matched. (apache#9906)
Browse files Browse the repository at this point in the history
Co-authored-by: timzrhuang <timzrhuang@tencent.com>
  • Loading branch information
2 people authored and rubikplanet committed Aug 8, 2023
1 parent 547c31a commit 5ce9546
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apisix/ssl/router/radixtree_sni.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function _M.match_and_set(api_ctx, match_only, alt_sni)
for _, msni in ipairs(api_ctx.matched_sni) do
if sni_rev == msni or not str_find(sni_rev, ".", #msni) then
matched = true
break
end
end
if not matched then
Expand Down

0 comments on commit 5ce9546

Please sign in to comment.