Does socket.setdefaulttimeout affect the timeouts in MySQLdb?

John Nagle nagle at
Tue Apr 24 06:39:06 CEST 2007

    Does setting "socket.setdefaulttimeout" affect the timeout in MySQLdb
for connections to the database?  I'm getting database connection timeouts on
a local (same machine) connnection, and I've been setting 
"socket.setdefaulttimeout" to 15 seconds so web page opens don't hang.
But MySQLdb uses the MySQL C library, which doesn't use Python opens.

				John Nagle

More information about the Python-list mailing list