diff options
Diffstat (limited to 'regress/sys/kern/splice/args-reverse-sleep-relay.pl')
-rw-r--r-- | regress/sys/kern/splice/args-reverse-sleep-relay.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/sys/kern/splice/args-reverse-sleep-relay.pl b/regress/sys/kern/splice/args-reverse-sleep-relay.pl new file mode 100644 index 00000000000..fbc218f82cf --- /dev/null +++ b/regress/sys/kern/splice/args-reverse-sleep-relay.pl @@ -0,0 +1,21 @@ +# test delay before relay copy when reverse sending + +use strict; +use warnings; + +our %args = ( + client => { + func => \&read_char, + }, + relay => { + func => sub { ioflip(@_); sleep 3; relay(@_); }, + }, + server => { + func => \&write_char, + len => 2**17, + }, + len => 131072, + md5 => "31e5ad3d0d2aeb1ad8aaa847dfa665c2", +); + +1; |