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