args-timeout-http.pl revision 1.4
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 }, 16 server => { 17 func => sub { 18 errignore(); 19 http_server(@_); 20 sleep 4; 21 write_char(@_, 4); 22 }, 23 sleep => 1, 24 down => "Broken pipe", 25 nocheck => 1, 26 }, 27 len => 5, 28); 29 301; 31