summaryrefslogtreecommitdiff
path: root/regress/sys/kern/splice/args-reset.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/splice/args-reset.pl')
-rw-r--r--regress/sys/kern/splice/args-reset.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/regress/sys/kern/splice/args-reset.pl b/regress/sys/kern/splice/args-reset.pl
new file mode 100644
index 00000000000..319425c5053
--- /dev/null
+++ b/regress/sys/kern/splice/args-reset.pl
@@ -0,0 +1,24 @@
+# test connection reset by server
+
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ func => sub { errignore(@_); write_char(@_); },
+ len => 2**17,
+ },
+ relay => {
+ func => sub { errignore(@_); relay(@_); },
+ sndbuf => 2**12,
+ rcvbuf => 2**12,
+ down => "Broken pipe|Connection reset by peer",
+ },
+ server => {
+ func => sub { sleep 3; solinger(@_); },
+ rcvbuf => 2**12,
+ },
+ nocheck => 1,
+);
+
+1;