Skip Menu |

This queue is for tickets about the Log-Syslog-Fast CPAN distribution.

Report information
The Basics
Id: 75583
Status: resolved
Priority: 0/
Queue: Log-Syslog-Fast

People
Owner: Nobody in particular
Requestors: cpan [...] bbkr.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.58
Fixed in: (no value)



Subject: socket stays connected when going out of scope
Hi Thanks for resolving previous 2 bugs super fast :) I found new one which can be reproduced in the following way: CODE: use Log::Syslog::Fast ":all"; for (1..1024) { Log::Syslog::Fast->new( LOG_UNIX, "/dev/log", 0, LOG_USER, LOG_INFO, "foo", "bar" ); } OUTPUT: Error in ->new: Bad file descriptor at -e line 1. WHERE: loop counter is bigger than system limit for open files Error is caused by reaching maximum number of opened sockets, somehow module do not close them when current SysLog object is going out of scope.
Yep, a socket was leaked in the case that the server was expecting SOCK_DGRAM instead of SOCK_STREAM and the logger automatically retried with the former. Fixed in 0.60.