Mysql vs. Mysqli crash handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks.  I've an odd issue.  

If I connect to a MySQL DB using ext/mysql, and for whatever reason the process dies (uncaught exception, fatal error, etc.) the connection is garbage collected and closed.  If, however, I use ext/mysqli, the connection remains open forever and just eats up resources, eventually resulting in hitting the connection limit.  Same app, same database, same server.

Any idea why mysqli behaves that way, and how to make it clean up properly?  (Yes I should of course try to avoid fatals in the first place, but when they do happen I don't want them to bring the whole server to its knees.)

--Larry Garfield

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux