Re: "ping" not reconnecting in Python MySQLdb client interface

2008-02-03 Thread John Nagle
JJohn Nagle wrote: >I have some long-running Python programs that can be idle > for hours, and, of course, the MySQL connection times out. > So I call > > db.ping() > > at the beginning of a new request cycle. This should > reestablish the connection, but it doesn't. ... > I suspe

"ping" not reconnecting in Python MySQLdb client interface

2008-02-03 Thread John Nagle
I have some long-running Python programs that can be idle for hours, and, of course, the MySQL connection times out. So I call db.ping() at the beginning of a new request cycle. This should reestablish the connection, but it doesn't: Traceback (most recent call last): File "ra