1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# test persistent https connection with request filter
use strict;
use warnings;
my @lengths = (251, 16384, 0, 1, 2, 3, 4, 5);
our %args = (
client => {
# relayd closes the connection on the first blocked request
func => sub { eval { http_client(@_) }; warn $@ },
lengths => \@lengths,
loggrep => qr/Client missing http 2 response/,
ssl => 1,
mreqs => 1,
httpnok => 1,
},
relayd => {
protocol => [ "http",
'block request path "/2"',
],
loggrep => [
qr/ssl, ssl client/ => 1,
qr/Forbidden/ => 1,
],
forwardssl => 1,
listenssl => 1,
},
server => {
func => \&http_server,
ssl => 1,
mreqs => 7,
nocheck => 1,
},
lengths => [251, 16384, 0, 1],
md5 => "bc3a3f39af35fe5b1687903da2b00c7f",
);
1;
|