[Twisted-web] adpapi cp_reconnect problem
Werner Thie
wthie at thiengineering.ch
Wed Oct 10 13:02:34 EDT 2007
Hi all
From what I was able to google and what I could deduce from the
source/docs this is what I think the right way to get reconnects after all:
def runQuery(self, query, *args):
try:
d = self.pool.runInteraction(self.mapQuery, query, args)
except adbapi.ConnectionLost:
#simply resend query, assuming cp_reconnect=True
d = self.pool.runInteraction(self.mapQuery, query, args)
return d
Am I on the right track?
Thxs for the help!
Werner
More information about the Twisted-web
mailing list