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


_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to