RLM_PERL mysql disconnect : what is the preferred handling ?

Alan DeKok aland at deployingradius.com
Tue Aug 13 15:16:50 CEST 2013


itquestioner wrote:
> We've found in the freeradius wiki, that the correct way to  manage connection to mysql is to initiate the connection in the CLONE function.
> But where should we put $dbh->disconnect() to be sure that any connection will also be closed ? Whatever the  result  of the request treatment, and the stage in which  the module may exit.

  You should be able to disconnect the database at any time.

  Alan DeKok.


More information about the Freeradius-Users mailing list