SocketOptions Methods |
The SocketOptions type exposes the following members.
Name | Description | |
---|---|---|
SetConnectTimeoutMillis |
Sets the number of milliseconds to wait for the socket to connect
| |
SetDefunctReadTimeoutThreshold |
Determines the amount of requests that simultaneously have to timeout before closing the connection.
| |
SetKeepAlive |
Sets if TCP keep-alive must be used
| |
SetReadTimeoutMillis |
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. | |
SetReceiveBufferSize |
Sets the size of the buffer used by the socket to receive
| |
SetReuseAddress | ||
SetSendBufferSize |
Sets the size of the buffer used by the socket to send
| |
SetSoLinger |
Sets the number of seconds to remain open after the Socket.Close() is called.
| |
SetStreamMode |
Sets if the driver should use either .NET NetworkStream (true) interface or SocketEventArgs interface (false, default)
to handle the reading and writing
| |
SetTcpNoDelay |
Set a Boolean value that specifies whether the stream Socket is using the Nagle algorithm.
Use false to enable Nagle algorithm; use true to disable Nagle algorithm (no delay). The default is true.
|