[CalendarServer-changes] [8171] CalendarServer/branches/users/glyph/shared-pool-take2/twext/ enterprise/adbapi2.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 10 08:05:19 PDT 2011


Revision: 8171
          http://trac.macosforge.org/projects/calendarserver/changeset/8171
Author:   glyph at apple.com
Date:     2011-10-10 08:05:19 -0700 (Mon, 10 Oct 2011)
Log Message:
-----------
Handle unhandled errors.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/adbapi2.py

Modified: CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/adbapi2.py
===================================================================
--- CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/adbapi2.py	2011-10-10 15:05:08 UTC (rev 8170)
+++ CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/adbapi2.py	2011-10-10 15:05:19 UTC (rev 8171)
@@ -1141,6 +1141,14 @@
         self._blocks = {}
 
 
+    def unhandledError(self, failure):
+        """
+        An unhandled error has occurred.  Since we can't really classify errors
+        well on this protocol, log it and forget it.
+        """
+        log.err(failure, "Shared connection pool server encountered an error.")
+
+
     @StartTxn.responder
     def start(self, transactionID):
         self._txns[transactionID] = self.pool.connection()
@@ -1230,6 +1238,14 @@
         self.paramstyle = paramstyle
 
 
+    def unhandledError(self, failure):
+        """
+        An unhandled error has occurred.  Since we can't really classify errors
+        well on this protocol, log it and forget it.
+        """
+        log.err(failure, "Shared connection pool client encountered an error.")
+
+
     def newTransaction(self):
         """
         Create a new networked provider of L{IAsyncTransaction}.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111010/6d15aefd/attachment.html>


More information about the calendarserver-changes mailing list