summaryrefslogtreecommitdiff
path: root/regress/sys/kern/splice/args-oob-max-sleep-client.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/splice/args-oob-max-sleep-client.pl')
-rw-r--r--regress/sys/kern/splice/args-oob-max-sleep-client.pl22
1 files changed, 22 insertions, 0 deletions
diff --git a/regress/sys/kern/splice/args-oob-max-sleep-client.pl b/regress/sys/kern/splice/args-oob-max-sleep-client.pl
new file mode 100644
index 00000000000..3fa0302317a
--- /dev/null
+++ b/regress/sys/kern/splice/args-oob-max-sleep-client.pl
@@ -0,0 +1,22 @@
+# test out-of-band data with maximum data length delay before client
+
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ func => sub { errignore(@_); sleep 3; write_oob(@_); },
+ nocheck => 1,
+ },
+ relay => {
+ max => 61,
+ nocheck => 1,
+ },
+ server => {
+ func => \&read_oob,
+ },
+ len => 61,
+ md5 => "e4282daf8d2ca21cc8b70b1314713314",
+);
+
+1;