git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix version output when missing.
[plcapi.git]
/
ModPython.py
diff --git
a/ModPython.py
b/ModPython.py
index
55dfdca
..
0d630d7
100644
(file)
--- a/
ModPython.py
+++ b/
ModPython.py
@@
-5,7
+5,8
@@
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
-# $Id: ModPython.py,v 1.3 2006/10/30 16:39:24 mlhuang Exp $
+# $Id$
+# $URL$
#
import sys
#
import sys
@@
-45,6
+46,10
@@
def handler(req):
# Handle request
response = api.handle(remote_addr, request)
# 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()
# Write response
req.content_type = "text/xml; charset=" + api.encoding
req.send_http_header()