1# test that 3 seconds timeout occurs within 4 seconds idle in http 2 3use strict; 4use warnings; 5 6our %args = ( 7 client => { 8 func => \&http_client, 9 len => 5, 10 timefile => "", 11 }, 12 relayd => { 13 protocol => [ "http" ], 14 relay => [ "session timeout 3" ], 15 loggrep => { qr/(buffer event|splice) timeout/ => 1 }, 16 }, 17 server => { 18 func => sub { 19 errignore(); 20 http_server(@_); 21 sleep 4; 22 write_char(@_, 4); 23 }, 24 sleep => 1, 25 down => "Broken pipe", 26 nocheck => 1, 27 }, 28 len => 5, 29); 30 311; 32