summaryrefslogtreecommitdiff
path: root/regress/sys/kern/sosplice/tcp/args-reset.pl
blob: 2887826468cf582d5215d5832a83f314db47dbf7 (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 connection reset by server

use strict;
use warnings;

our %args = (
    client => {
	func => sub { errignore(@_); write_stream(@_); },
	len => 2**17,
    },
    relay => {
	func => sub { errignore(@_); relay(@_); },
	sndbuf => 2**12,
	rcvbuf => 2**12,
	down => "Broken pipe|Connection reset by peer",
    },
    server => {
	func => sub { sleep 3; solingerin(@_); },
	rcvbuf => 2**12,
    },
    nocheck => 1,
    noecho => 1,
);