Re: [Lxr-dev] DB only opened, never closed?
Brought to you by:
ajlittoz
From: Per K. G. <pe...@ne...> - 2001-10-16 08:53:43
|
On Mon, 2001-10-15 at 11:35, Jan-Benedict Glaw wrote: > Every once in a while, I'm looking over the LXR code. Now, this time > I've realized that $index opens a DB (httpinit), but this gets > never closed as far as I see. I'd think that a DB connection > gets opened by a page request, and afterwards closed when this > request is finished. But there seems to be no close, is there? Right you are. There is a DESTROY method in Mysql.pm but it never gets called. I have made a httpclean sub that is called to clean things up it should be paired with httpinit. I will commit these changes shortly. Per Kristian |