Note
This variable is available starting with V1.4.
Description
The net_read_timeout variable specifies the number of seconds to wait for other data from a connection before interrupting the read operation.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) to query the value of a global system variable.Session level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) to query the value of a session system variable.
Modify variables
Set the variable at the global level
The
systenant can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Set the variable at the session level
The
systenant and all user tenants can directly modify the value of a session system variable of the tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 30 |
| Value range | [1, 31536000] |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Remarks
The net_read_timeout variable specifies the timeout value in seconds before the server interrupts the read operation when it reads data from a client.
Examples
Set the number of seconds to wait for other data to arrive before interrupting the read operation to 30.
Session level
obclient> SET net_read_timeout =30;Global level
obclient> SET GLOBAL net_read_timeout =30;