X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ModPython.py;h=1a5b43e6c25747ca1d1375f90c0aff0d6dacc08a;hb=8ebeada1eebab2cd38615b8b13134189d9c42003;hp=55dfdcad97ec5e4b3773e006d8b8ede4854367e4;hpb=1d27404fac941754438e07ee7920caff81580423;p=plcapi.git diff --git a/ModPython.py b/ModPython.py index 55dfdca..1a5b43e 100644 --- a/ModPython.py +++ b/ModPython.py @@ -5,7 +5,6 @@ # Mark Huang # # Copyright (C) 2004-2006 The Trustees of Princeton University -# $Id: ModPython.py,v 1.3 2006/10/30 16:39:24 mlhuang Exp $ # import sys @@ -45,6 +44,10 @@ def handler(req): # Handle request response = api.handle(remote_addr, request) + # Shut down database connection, otherwise up to MaxClients DB + # connections will remain open. + api.db.close() + # Write response req.content_type = "text/xml; charset=" + api.encoding req.send_http_header()