summaryrefslogtreecommitdiff
path: root/regress/sys/kern/splice/args-maxcopy-sleep-client.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/splice/args-maxcopy-sleep-client.pl')
-rw-r--r--regress/sys/kern/splice/args-maxcopy-sleep-client.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/regress/sys/kern/splice/args-maxcopy-sleep-client.pl b/regress/sys/kern/splice/args-maxcopy-sleep-client.pl
new file mode 100644
index 00000000000..adaed950640
--- /dev/null
+++ b/regress/sys/kern/splice/args-maxcopy-sleep-client.pl
@@ -0,0 +1,18 @@
+# test relay maximum data length then copy with delay before client
+
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ func => sub { sleep 3; write_char(@_); },
+ },
+ relay => {
+ func => sub { relay(@_, 61); relay_copy(@_); },
+ nocheck => 1,
+ },
+ len => 251,
+ md5 => "bc3a3f39af35fe5b1687903da2b00c7f",
+);
+
+1;