/[pkgs]/devel/perl/27_fix_sys_syslog_timeout
ViewVC logotype

Contents of /devel/perl/27_fix_sys_syslog_timeout

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 11 22:01:05 2009 UTC (8 months, 1 week ago) by spot
Branch: MAIN
CVS Tags: F-12-split, perl-5_10_0-63_fc11, perl-5_10_0-61_fc11, perl-5_10_0-80_fc12, perl-5_10_0-81_fc12, perl-5_10_0-84_fc13, perl-5_10_0-82_fc13, perl-5_10_0-77_fc12, perl-5_10_0-83_fc13, perl-5_10_0-71_fc12, perl-5_10_0-75_fc12, perl-5_10_0-73_fc12, perl-5_10_0-68_fc11, perl-5_10_0-67_fc11, perl-5_10_0-64_fc11, perl-5_10_0-72_fc12, F-11-split, perl-5_10_0-62_fc11, perl-5_10_0-69_fc12, perl-5_10_0-79_fc12, perl-5_10_0-78_fc12, perl-5_10_0-70_fc12, perl-5_10_0-74_fc12, perl-5_10_0-66_fc11, perl-5_10_0-65_fc11, perl-5_10_0-76_fc12, HEAD
reorder @INC, fix bz 489204, merge useful debian patches
1 Fix Sys::Syslog slowness when logging with non-native mechanisms. (Closes: #498776)
2
3 Revert the 0.25 second timeout change that was added in 0.19 to address
4 an OSX problem with UDP sockets and ICMP responses.
5
6 Fixed upstream in Sys::Syslog 0.25, which changes the timeout default
7 to 0 again on non-OSX hosts and makes it configurable with setlogsock().
8 diff --git a/ext/Sys/Syslog/Syslog.pm b/ext/Sys/Syslog/Syslog.pm
9 index 899f25b..7037e18 100644
10 --- a/ext/Sys/Syslog/Syslog.pm
11 +++ b/ext/Sys/Syslog/Syslog.pm
12 @@ -741,7 +741,7 @@ sub connection_ok {
13
14 my $rin = '';
15 vec($rin, fileno(SYSLOG), 1) = 1;
16 - my $ret = select $rin, undef, $rin, 0.25;
17 + my $ret = select $rin, undef, $rin, 0;
18 return ($ret ? 0 : 1);
19 }
20

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2