summaryrefslogtreecommitdiff
path: root/regress/sys/kern/sosplice/tcp/args-max-sleep-server.pl
blob: e8ffe6225bed1965d0de7ab4991a3aef7817c28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# test maximum data length,
# server sleeps before reading

use strict;
use warnings;

our %args = (
    client => {
	func => sub { errignore(@_); write_stream(@_); },
	len => 2**17,
	nocheck => 1,
    },
    relay => {
	max => 32117,
	big => 1,
    },
    server => {
	func => sub { sleep 3; read_stream(@_); },
    },
    len => 32117,
    md5 => "ee338e9693fb2a2ec101bb28935ed123",
    noecho => 1,
);