Skip to content

Commit c98c359

Browse files
committed
docs: adjust non-blocking to reality
1 parent 35fca72 commit c98c359

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

docs/source/libmemcached/memcached_behavior.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,20 @@ SYNOPSIS
6262

6363
.. enumerator:: MEMCACHED_BEHAVIOR_NO_BLOCK
6464

65-
Causes `libmemcached` to use asynchronous IO. This is the fastest
66-
transport available for storage functions.
65+
This enables `SO_LINGER` only, so the :manpage:`close(2)` call on the
66+
socket returns immediately. I/O is always handled asynchronously in
67+
recent versions of `libmemcached`.
6768

6869
.. enumerator:: MEMCACHED_BEHAVIOR_SND_TIMEOUT
6970

7071
This sets the microsecond behavior of the socket against the SO_SNDTIMEO
7172
flag.
7273

73-
In cases where you cannot use non-blocking IO this will allow you to
74-
still have timeouts on the sending of data.
75-
7674
.. enumerator:: MEMCACHED_BEHAVIOR_RCV_TIMEOUT
7775

7876
This sets the microsecond behavior of the socket against the SO_RCVTIMEO
7977
flag.
8078

81-
In cases where you cannot use non-blocking IO this will allow you to
82-
still have timeouts on the reading of data.
83-
8479
.. enumerator:: MEMCACHED_BEHAVIOR_TCP_NODELAY
8580

8681
Disables Nagle's algorithm.
@@ -176,8 +171,8 @@ SYNOPSIS
176171

177172
.. enumerator:: MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT
178173

179-
In non-blocking mode this changes the value of the timeout during socket
180-
connection in milliseconds. Specifying -1 means an infinite time‐out.
174+
Set the timeout during socket connection in milliseconds.
175+
Specifying -1 means an infinite time‐out.
181176

182177
.. enumerator:: MEMCACHED_BEHAVIOR_BINARY_PROTOCOL
183178

0 commit comments

Comments
 (0)