Does socket.setdefaulttimeout affect the timeouts in MySQLdb?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Nagle

    #1

    Does socket.setdefaulttimeout affect the timeouts in MySQLdb?

    Does setting "socket.setdefa ulttimeout" 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.setdefa ulttimeout" 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
  • Steve Holden

    #2
    Re: Does socket.setdefau lttimeout affect the timeouts in MySQLdb?

    John Nagle wrote:
    Does setting "socket.setdefa ulttimeout" 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.setdefa ulttimeout" 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.

    regards
    Steve
    --
    Steve Holden +1 571 484 6266 +1 800 494 3119
    Holden Web LLC/Ltd http://www.holdenweb.com
    Skype: holdenweb http://del.icio.us/steve.holden
    Recent Ramblings http://holdenweb.blogspot.com

    Comment

    Working...