perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <>
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

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.


aevum gmbh
rumfordstr. 4
80469 m√ľnchen

tel: +49 89 3838 0653

View raw message