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