perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject [PATCH] Apache::DBI - Disconnect on child exit
Date Mon, 20 Jul 2009 15:15:36 GMT

Currently, Apache::DBI never disconnects from the database. This leads
to the following warnings in my Postgres logs every time an Apache child
exits:

LOG:  unexpected EOF on client connection

Depending on MaxRequestsPerChild this can really spam your Postgres logs.

Attached is a patch against Apache::DBI that adds a PerlChildExitHandler
in order to disconnect all existing database connections.

Comments are welcome.

Nick


-- 
aevum gmbh
rumfordstr. 4
80469 m√ľnchen
germany

tel: +49 89 3838 0653
http://aevum.de/

Mime
View raw message