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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.