Click or drag to resize
SocketOptionsSetReadTimeoutMillis Method
Sets the per-host read timeout in milliseconds.

When setting this value, keep in mind the following:

- the timeout settings used on the Cassandra side (*_request_timeout_in_ms in cassandra.yaml) should be taken into account when picking a value for this read timeout. In particular, if this read timeout option is lower than Cassandra's timeout, the driver might assume that the host is not responsive and mark it down.

- the read timeout is only approximate and only control the timeout to one Cassandra host, not the full query (see ReadTimeoutMillis for more details).

Setting a value of 0 disables client read timeouts.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax
C#
public SocketOptions SetReadTimeoutMillis(
	int milliseconds
)

Parameters

milliseconds
Type: SystemInt32

Return Value

Type: SocketOptions
See Also