summaryrefslogtreecommitdiff
path: root/regress/sys/kern/sosplice/tcp/args-max-time.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/sosplice/tcp/args-max-time.pl')
-rw-r--r--regress/sys/kern/sosplice/tcp/args-max-time.pl21
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/sys/kern/sosplice/tcp/args-max-time.pl b/regress/sys/kern/sosplice/tcp/args-max-time.pl
new file mode 100644
index 00000000000..abf22c9e53b
--- /dev/null
+++ b/regress/sys/kern/sosplice/tcp/args-max-time.pl
@@ -0,0 +1,21 @@
+# test immediate data transfer after maximum data length
+
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ func => sub { $| = 1; errignore(@_); write_stream(@_); sleep(6); },
+ nocheck => 1,
+ },
+ relay => {
+ func => sub { relay(@_); sleep(5); },
+ max => 63,
+ },
+ server => {
+ func => sub { alarm(4); read_stream(@_); },
+ max => 63,
+ },
+ len => 63,
+ md5 => "4a3c3783fc56943715c53e435973b2ee",
+);