Bug #96942 net_read_timeout and net_write_timeout do not work
| Submitted: | 19 Sep 2019 9:03 | Modified: | 30 Sep 2019 12:51 |
|---|---|---|---|
| Reporter: | Iwo P | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Connection Handling | Severity: | S1 (Critical) |
| Version: | 5.7. 8.0, 8.0.17 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any |
[19 Sep 2019 9:03]
Iwo P
[19 Sep 2019 12:39]
Iwo P
The above also applies to net_write_timeout and master-slave replication. Steps to reproduce: 1. Create a Master-Slave replication with net_write_timeout set to 1 and net_retry_count set to 1 on master. 2. Block communication (on slave) with iptables -I INPUT -ptcp --sport 3306 -j DROP; iptables -I OUTPUT -ptcp --dport 3306 -j DROP 3. Create an event on master (create database something;) According to documentation `If sufficient time elapses on the master side without activity on the Binlog Dump thread, the master determines that the slave is no longer connected. As for any other client connection, the timeouts for this depend on the values of net_write_timeout and net_retry_count'. However, the slave is determined as dead/unconnected after Operating System decides to close the socket. I'm not creating a new bug report for this, as the underlying issue is the same here.
[30 Sep 2019 12:51]
MySQL Verification Team
Hello Iwo P, Thank you for the report and test case. Verified as described with 8.0.17 build. regards, Umesh
[19 Mar 2020 15:04]
Thayumanavar Sachithanantham
Please note net_read_timeout is timeout expiry when the server waits on data (socket fd) to become available. The above test case doesn't simulate such a scenario.
[19 Mar 2020 15:04]
Thayumanavar Sachithanantham
Please note net_read_timeout is timeout expiry when the server waits on data (socket fd) to become available. The above test case doesn't simulate such a scenario.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.046 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.