Does socket.setdefaulttimeout affect the timeouts in MySQLdb?

Steve Holden steve at
Tue Apr 24 13:18:53 CEST 2007

John Nagle wrote:
>     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.
So that would be a "no", then.

Steve Holden       +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd
Skype: holdenweb
Recent Ramblings

More information about the Python-list mailing list