1. Michael Manfre
  2. django-mssql

Issues

Issue #11 resolved

error 500 on Windows using FastCGI

Anonymous created an issue

Hello,

First of all thank you for your great job. I ran across a difficult to find issue while running Django under FastCGI. My application was randomly generating 500 errors. The error log was reporting the crash of the python process in adodb. I found that somehow python was trying to reuse a connection that was already closed with the database. I found a similar bug report on the internet (http://python.6.n6.nabble.com/Fw-pywin32-Bugs-3292681-adodbapi-Subtle-crash-td1957341.html), and the fix for me was the one liner in the diff below.

You may be interested in integrating it.

{{{ --- dbapi.py.orig 2012-06-20 17:30:40.000000000 +0200 +++ dbapi.py 2012-06-29 07:59:57.765124551 +0200 @@ -253,6 +253,7 @@ if self.supportsTransactions: self.adoConn.RollbackTrans() self.adoConn.Close() + del self.adoConn

 def close(self):
     """Close the database connection."""

}}}

Comments (1)

  1. Log in to comment