Overview
net_read_timeout specifies the number of seconds to wait for other data from the connection before interrupting the read.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
The
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 30 |
| Value range | [1, 31536000] |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Usage instructions
When the server reads data from the client, net_read_timeout specifies the timeout value that controls when to interrupt the read.
Configuration example
Set the number of seconds to wait for other data on the connection before interrupting data reading to 30.
Session expiration
obclient> SET net_read_timeout =30;Effective globally
obclient> SET GLOBAL net_read_timeout =30;