summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-timein.pl
blob: 63343abe00a1a9ebfc419498ecb16d5e4a8845f1 (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
# test that 3 seconds timeout does not occur within 2 seconds idle

use strict;
use warnings;

our %args = (
    client => {
	func => sub {
	    errignore();
	    write_char(@_, 5);
	    sleep 2;
	    write_char(@_, 4);
	},
	sleep => 1,
	timefile => "",
	nocheck => 1,
    },
    relayd => {
	relay => [ "session timeout 3" ],
    },
    len => 9,
);

1;