Bug #40407 MyODBC takes 15 minutes to time out on network connection failure
| Submitted: | 29 Oct 2008 20:07 | Modified: | 5 Jan 2009 18:05 |
|---|---|---|---|
| Reporter: | Kyle Joiner | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / ODBC | Severity: | S2 (Serious) |
| Version: | 3.51, 5.1 | OS: | Linux (Linux 2.6.9-67.ELsmp ) |
| Assigned to: | Jess Balint | CPU Architecture: | Any |
[29 Oct 2008 20:07]
Kyle Joiner
[30 Oct 2008 10:36]
Tonci Grgin
Hey Kyle. I think you rushed too fast and disregarded possible regression related to Bug #9678. My test: o MySQL server version: 5.0.67-community-nt MySQL Community Edition (GPL) on Vista x64 remote host. o MySQL client 5.0.67 on localhost. Connection id: 5 Current database: information_schema mysql> select sleep(5), 1+1; +----------+-----+ | sleep(5) | 1+1 | +----------+-----+ | 0 | 2 | +----------+-----+ 1 row in set (5.22 sec) mysql> select sleep(10), 1+1; --<server network cable disconnected>-- Query aborted by Ctrl+C (after 30 minutes waiting) ^C I fail to see how this is related to ODBC...
[30 Oct 2008 10:37]
Tonci Grgin
Client screen shoot after disconnecting server from network.
Attachment: Bug9678.JPG (image/jpeg, text), 133.01 KiB.
[31 Oct 2008 19:43]
Tonci Grgin
Sveta, I need to know if *Linux* client fails. Please retest once again.
[31 Oct 2008 22:09]
Sveta Smirnova
With Linux client connection fails as well: C API behavior is correct
[31 Oct 2008 22:17]
Tonci Grgin
Thanks Sveta for checking client library for regression. mysql_options(&conn, MYSQL_OPT_READ_TIMEOUT, (void *)&timeout); mysql_options(&conn, MYSQL_OPT_WRITE_TIMEOUT, (void *)&timeout); work as expected but, unfortunately, we do not implement those in c/ODBC...
[4 Nov 2008 23:19]
Jess Balint
Fix pushed to https://code.launchpad.net/~myodbc-developers/myodbc/bug40407_351
[11 Nov 2008 17:54]
Jess Balint
Pushed as rev 689.
[12 Nov 2008 16:09]
Jess Balint
Will be released in 3.51.27.
[3 Dec 2008 17:06]
Jess Balint
Added READTIMEOUT and WRITETIMEOUT connection options that correspond to the MYSQL_OPT_READ_TIMEOUT and MYSQL_OPT_WRITE_TIMEOUT options of libmysql.
[5 Jan 2009 18:05]
Tony Bedford
An entry was added to the 3.51.27 changelog: The client program hung when the network connection to the server was interrupted. Also, information was added to the main documentation for the options READTIMEOUT and WRITETIMEOUT.
[27 Sep 2010 10:06]
Bonny Gijzen
I don't see if this bug was/is also present in 5.1, is it? Can someone confirm that this bug isn't present in 5.1? Can someone confirm the READTIMEOUT and WRITETIMEOUT options are available in 5.1 ? Bonny,
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.066 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.