SocketOptions Properties |
The SocketOptions type exposes the following members.
Name | Description | |
---|---|---|
ConnectTimeoutMillis |
Gets the number of milliseconds to wait for the socket to connect
| |
DefunctReadTimeoutThreshold |
Gets the amount of requests that simultaneously have to timeout before closing the connection.
| |
KeepAlive |
Gets if TCP keep-alive must be used
| |
ReadTimeoutMillis |
The per-host read timeout in milliseconds.
This defines how long the driver will wait for a given Cassandra node to answer a query. Please note that this is not the maximum time a call to Execute(String) may block; this is the maximum time that call will wait for one particular Cassandra host, but other hosts will be tried if one of them timeout. In other words, a Execute(String) call may theoretically wait up to ReadTimeoutMillis * {number_of_cassandra_hosts} (though the total number of hosts tried for a given query also depends on the LoadBalancingPolicy in use). Also note that for efficiency reasons, this read timeout is approximate, it may fire up to late. It is not meant to be used for precise timeout, but rather as a protection against misbehaving Cassandra nodes. | |
ReceiveBufferSize |
Gets the size of the buffer used by the socket to receive
| |
ReuseAddress | ||
SendBufferSize |
Gets the size of the buffer used by the socket to send
| |
SoLinger |
Gets the number of seconds to remain open after the Socket.Close() is called.
| |
TcpNoDelay |
Gets a Boolean value that specifies whether the stream Socket is using the Nagle algorithm.
When set to false, the Nagle algorithm is enabled; when set to true the Nagle algorithm is disabled (no delay). The default is true.
| |
UseStreamMode |
Determines if the driver should use either .NET NetworkStream interface (true) or SocketEventArgs interface (false, default)
to handle the reading and writing
|