全部搜索项
bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: libvmod-re2  ]

软件包:varnish-re2(2.0.0-5 以及其他的)

varnish-re2 的相关链接

Screenshot

Debian 的资源:

下载源码包 libvmod-re2

维护小组:

外部的资源:

相似软件包:

RE2 regular expressions for Varnish

Varnish Module (VMOD) for access to the Google RE2 regular expression engine. Varnish VCL uses the PCRE library (Perl Compatible Regular Expressions) for its native regular expressions, which runs very efficiently for many common uses of pattern matching in VCL, as attested by years of successful use of PCRE with Varnish.

But for certain kinds of patterns, the worst-case running time of the PCRE matcher is exponential in the length of the string to be matched. The matcher uses backtracking, implemented with recursive calls to the internal match() function. In principle there is no upper bound to the possible depth of backtracking and recursion, except as imposed by the varnishd runtime parameters pcre_match_limit and pcre_match_limit_recursion; matches fail if either of these limits are met. Stack overflow caused by deep backtracking has occasionally been the subject of varnishd issues.

RE2 differs from PCRE in that it limits the syntax of patterns so that they always specify a regular language in the formally strict sense. Most notably, backreferences within a pattern are not permitted, for example (foo|bar)\1 to match foofoo and barbar, but not foobar or barfoo. See the link in SEE ALSO for the specification of RE2 syntax.

This means that an RE2 matcher runs as a finite automaton, which guarantees linear running time in the length of the matched string. There is no backtracking, and hence no risk of deep recursion or stack overflow.

其他与 varnish-re2 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 varnish-re2

下载可用于所有硬件架构的
硬件架构 版本 软件包大小 安装后大小 文件
amd64 2.0.0-5 67.0 kB160.0 kB [文件列表]
arm64 2.0.0-5+b1 64.6 kB189.0 kB [文件列表]
mips64el 2.0.0-5 63.2 kB192.0 kB [文件列表]
ppc64el 2.0.0-5 66.9 kB188.0 kB [文件列表]
riscv64 2.0.0-5 66.3 kB144.0 kB [文件列表]
s390x 2.0.0-5 65.1 kB152.0 kB [文件列表]