Re: [PATCH]mysql_pconnect leaks file descriptors on reconnect

From: Date: Mon, 22 Aug 2011 09:14:09 +0000
Subject: Re: [PATCH]mysql_pconnect leaks file descriptors on reconnect
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-54781@lists.php.net to get a copy of this message
Hi: and the reason for why this cleanup cound not be done in dtor, is that in dtor, it also clean the content, option, which should not free at that memont, alos IMO, that is not a dtor time in theory(reconnecting with a same mysql->conn). thanks 2011/8/22 Laruence <laruence@php.net>: > georg, andery, ulf: > >    hello,  there is a bug in mysqlnd,  the details about this bug can > be found at https://bugs.php.net/bug.php?id=55473 > >    I found the reason is that mysqlnd_connect didn't free the stream > when doing reconnect. > >    I have submitted a patch for  this,  but I am not very sure the > patch is okey. > >    could you review this patch?  thanks. > > -- > Laruence  Xinchen Hui > http://www.laruence.com/ > -- Laruence  Xinchen Hui http://www.laruence.com/

« previous php.internals (#54781) next »