Comment 1 for bug 918118

Revision history for this message
Geert JM Vanderkelen (geertjmvdk) wrote :

FYI, the code for is_conntected() and ping() has been refactored a bit in later versions.

I didn't get a BrokenPipe error, but can you check on how to reproduce it?
I do this:

>>> cnx = mysql.connector.MySQLConnection(database='test')

Now stop the MySQL server, and do:

>>> cnx.is_connected()

This gives an InterfaceError "Expected OK packet" (which might also not be that good)