Bug #15718 | mysql_real_connect() using named pipe doesn't honor wait_timeout | ||
---|---|---|---|
Submitted: | 13 Dec 2005 21:22 | Modified: | 20 Jan 2006 22:40 |
Reporter: | Edmund Mierzwa | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.0.16-nt-max | OS: | Windows (XP, with SP2) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[13 Dec 2005 21:22]
Edmund Mierzwa
[13 Dec 2005 23:24]
MySQL Verification Team
Changing to documentation category, on Windows the timeout are based on TCP/IP socket's timeouts that is the reason why behaves in this way. Thank you for the bug report.
[20 Jan 2006 22:07]
MySQL Verification Team
Paul, The bug report and my comments are limited just for our Windows servers. The timeouts were implemented using TCP/IP Windows sockets how you can see below in the piece of code extracted from mysqld.cc 4.1: #ifdef __WIN__ /* Set default wait_timeout */ ulong wait_timeout= global_system_variables.net_wait_timeout * 1000; (void) setsockopt(new_sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&wait_timeout, sizeof(wait_timeout)); #endif so named pipes and shared memory not work with these timeouts just connections using TCP/IP. There is a bug report, sorry don't remember the number submited with a patch how to implement the same kind of timeout on Unices.
[20 Jan 2006 22:40]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant product(s). Additional info: I'll update the description of wait_timeout here to indicate that it applies only to TCP/IP connections: http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html