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