You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Ivan Habunek (JIRA)" <ji...@apache.org> on 2011/01/12 21:56:46 UTC
[jira] Updated: (LOG4PHP-133) PDO appender doesn't close
connections
[ https://issues.apache.org/jira/browse/LOG4PHP-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Habunek updated LOG4PHP-133:
---------------------------------
Fix Version/s: 2.1
Assignee: Ivan Habunek
That's a nasty bug. Nice catch. I'm on it.
Although, I'm going to write a test so this doesn't happen again... so it might take 2 or even 5 minutes. :)
> PDO appender doesn't close connections
> --------------------------------------
>
> Key: LOG4PHP-133
> URL: https://issues.apache.org/jira/browse/LOG4PHP-133
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Affects Versions: 2.0
> Environment: Any
> Reporter: Dmitry Katemirov
> Assignee: Ivan Habunek
> Priority: Blocker
> Fix For: 2.1
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> LogAppenderPDO::close() resets non-existent $db instead of $this->db:
> public function close()
> {
> if ($this->closed != true)
> {
> if ($this->db !== null)
> {
> $db = null;
> }
> $this->closed = true;
> }
> }
> In a busy app the bug results in thousands of DB connections that may even cause server crash.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.