From: Warren Young Date: December 27 2007 3:54am Subject: Re: problems in ConnectionPool List-Archive: http://lists.mysql.com/plusplus/7307 Message-Id: <477321DE.4070900@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Warren Young wrote: > > I don't have a good reason for an outsider to drain a pool, but I also > don't have one for why an outsider shouldn't be allowed to drain a pool. > So, I made this method public. On further consideration, I wonder if clear() shouldn't be overloaded, with one version being protected and taking a bool "force" parameter. If force, destroying in-use connections is allowed. Else, not.