diff options
Diffstat (limited to 'regress/sys/kern/sosplice/tcp/args-max-sleep-relay.pl')
-rw-r--r-- | regress/sys/kern/sosplice/tcp/args-max-sleep-relay.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/regress/sys/kern/sosplice/tcp/args-max-sleep-relay.pl b/regress/sys/kern/sosplice/tcp/args-max-sleep-relay.pl new file mode 100644 index 00000000000..7363ef6fcf8 --- /dev/null +++ b/regress/sys/kern/sosplice/tcp/args-max-sleep-relay.pl @@ -0,0 +1,19 @@ +# test maximum data length with delay before relay copy + +use strict; +use warnings; + +our %args = ( + client => { + func => sub { errignore(@_); write_stream(@_); }, + len => 2**17, + down => "Client print failed: Broken pipe", + nocheck => 1, + }, + relay => { + func => sub { sleep 3; relay(@_); shutin(@_); sleep 1; }, + max => 32117, + }, + len => 32117, + md5 => "ee338e9693fb2a2ec101bb28935ed123", +); |