Make syslogd test more reliable. Use Time::HiRes to sleep .01 seconds in the write_lines() loop. This slows down the client, so all messages reach syslogd and flood its buffers. Increase the timeout to wait until all buffers are full. Use this code in all TCP/TLS buffer and memory overflow tests.
|