Nikita
unread,Apr 29, 2011, 10:10:12 AM4/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to In-Portal Development Team
One recent project has shown, that having die() executed frequently in
code might cause database connection to "freeze", in other words -
this "dead" connection does not disconnect and as a result, maximum
allowed db connections becomes a cause for other sites, running on
same server, to receive "cannot connect to database server - maximum
allowed connections exceeded".
I propose handling database closure process within __destruct() method
inside of kDbConnection class, as this method should be executed even
if die() is called.