summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-multi.pl
blob: 2cc16566451ce55ef13e1a489b9b7152942e8eb6 (plain)
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
# test 50 http get with length 1 over http relay

use strict;
use warnings;

my @lengths = map { 1 } (1..50);
our %args = (
    client => {
	func => \&http_client,
	lengths => \@lengths,
	method => "GET",
    },
    relayd => {
	protocol => [ "http" ],
	loggrep => {
	    qr/, (?:done|last write \(done\)), GET/ => (1 + @lengths),
	},
    },
    server => {
	func => \&http_server,
    },
    lengths => \@lengths,
);

1;