Menu

Is connect_timeout working ?

igol
2005-03-19
2012-09-19
  • igol

    igol - 2005-03-19

    Hello, I'm using the latest Windows version of MySQLdb (v1.2), along with Python 2.4.

    Is the connect_timeout, as mentioned in http://sourceforge.net/docman/display_doc.php?docid=26238&group_id=22307 working ?

    I tried connecting to a bogus server IP address and set connect_timeout to 1 , but the call to connect() still took way more than just 1 second to return an error message.

    Also, what is the default timeout ? The docs say

    Default: no timeout (?)

    Regards,
    Danny

     
    • Andy Dustman

      Andy Dustman - 2005-03-19

      It ought to work. Maybe it's a problem with the Windows socket implementation and timeouts dont work there, but I really don't know.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.