Does socket.setdefaulttimeout affect the timeouts in MySQLdb?

Discussion in 'Python' started by John Nagle, Apr 24, 2007.

  1. John Nagle

    John Nagle Guest

    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
     
    John Nagle, Apr 24, 2007
    #1
    1. Advertising

  2. John Nagle

    Steve Holden Guest

    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.

    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
     
    Steve Holden, Apr 24, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmFzb24=?=

    forms authentication timeouts and session timeouts

    =?Utf-8?B?SmFzb24=?=, Jun 22, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    470
    =?Utf-8?B?SmFzb24=?=
    Jun 22, 2004
  2. adrian
    Replies:
    4
    Views:
    764
    John J. Lee
    Apr 1, 2005
  3. Sheila King

    socket setdefaulttimeout

    Sheila King, Aug 13, 2005, in forum: Python
    Replies:
    10
    Views:
    893
    Steve Holden
    Aug 17, 2005
  4. Russell Warren

    scope of socket.setdefaulttimeout?

    Russell Warren, Sep 29, 2005, in forum: Python
    Replies:
    5
    Views:
    666
    Steve Holden
    Oct 19, 2005
  5. rtilley

    socket.setdefaulttimeout()

    rtilley, Oct 8, 2005, in forum: Python
    Replies:
    1
    Views:
    491
    Fredrik Lundh
    Oct 9, 2005
Loading...

Share This Page