| 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 |
|