Subject: | Sys-Syslog 0.19-0.24 slowdown |
Date: | Tue, 8 Apr 2008 02:04:12 +0300 |
To: | bug-Sys-Syslog [...] rt.cpan.org |
From: | Alex Efros <powerman [...] powerman.name> |
Hi!
I'm using socklog (syslog-compatible log daemon) for logging in my
projects, i.e. each project run own socklog daemon, and have own unix
socket to send logs to that daemon. So, I HAVE to use setlogsock('unix').
Starting from version 0.19 there was 0.25 sec timeout added in
connection_ok():
- my $ret = select $rin, undef, $rin, 0;
+ my $ret = select $rin, undef, $rin, 0.25;
I've no idea about reason to do this (at least I don't find anything
related to this in Changelog or documentation), but this have side effect
in slowing down logging. For example, I've fast networking I/O code which
doing thousands operations on non-blocking sockets every second, and I
wish to log a lot of messages every second (may be thousands too, in debug
mode). But after 0.25 sec timeout was added, I can log 4 messages per
second maximum! This isn't acceptable, so for now I stick to 0.18.
Can you explain reason why that timeout needed and make it possible to
disable (or configure) it?
--
WBR, Alex.