idle_timeout Property
The idle timeout for this connection.
Syntax
def get_idle_timeout(connection_id: int) -> int: ... def set_idle_timeout(connection_id: int, value: int) -> None: ...
Default Value
0
Remarks
The idle timeout for this connection. This property is similar to defaultidletimeout but may be set on a per-connection basis to override defaultidletimeout. This property specifies the idle timeout (in seconds) for the connected client. When set to a positive value the class will disconnect idle clients after the specified timeout.
This only applies to clients that have not send to received data within the specified number of seconds.
If set to 0 (default) no idle timeout is applied.
Note: doevents must be called in order for the class to check existing connections.
The connection_id parameter specifies the index of the item in the array. The size of the array is controlled by the connection_count property.