args-memory-overflow-cont.pl revision 1.2
1# Syslogc reads the memory logs continously. 2# The client writes message to overflow the memory buffer method. 3# The syslogd writes it into a file and through a pipe. 4# The syslogd passes it via UDP to the loghost. 5# The server receives the message on its UDP socket. 6# Check that syslogc logs lost lines. 7 8use strict; 9use warnings; 10 11our %args = ( 12 client => { 13 func => sub { 14 my $self = shift; 15 write_lines($self, 300, 2000); 16 write_log($self); 17 }, 18 }, 19 syslogd => { 20 memory => 1, 21 loggrep => { 22 qr/Accepting control connection/ => 1, 23 qr/ctlcmd 6/ => 1, # read cont 24 }, 25 }, 26 syslogc => [ { 27 early => 1, 28 stop => 1, 29 options => ["-f", "memory"], 30 down => qr/Lines were dropped!/, 31 loggrep => {}, 32 } ], 33); 34 351; 36