summaryrefslogtreecommitdiff
path: root/regress/sys/kern/sosplice/tcp/args-reset-sleep-server.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/sosplice/tcp/args-reset-sleep-server.pl')
-rw-r--r--regress/sys/kern/sosplice/tcp/args-reset-sleep-server.pl26
1 files changed, 26 insertions, 0 deletions
diff --git a/regress/sys/kern/sosplice/tcp/args-reset-sleep-server.pl b/regress/sys/kern/sosplice/tcp/args-reset-sleep-server.pl
new file mode 100644
index 00000000000..68330ce5413
--- /dev/null
+++ b/regress/sys/kern/sosplice/tcp/args-reset-sleep-server.pl
@@ -0,0 +1,26 @@
+# test delay before server read, client sends reset during splice
+
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ alarm => 1,
+ func => sub { solingerout(@_); write_stream(@_); },
+ len => 2**19,
+ nocheck => 1,
+ },
+ relay => {
+ func => sub { errignore(@_); relay(@_); },
+ rcvbuf => 2**10,
+ sndbuf => 2**10,
+ down => "Broken pipe|Connection reset by peer",
+ nocheck => 1,
+ },
+ server => {
+ func => sub { sleep 3; read_stream(@_); },
+ nocheck => 1,
+ },
+ len => 131072,
+ md5 => "31e5ad3d0d2aeb1ad8aaa847dfa665c2",
+);