clarify documentation about non-blocking mode
This commit is contained in:
parent
035766fab0
commit
97ea105d4e
|
@ -500,7 +500,9 @@ class Channel (object):
|
|||
|
||||
In non-blocking mode, if a L{recv} call doesn't find any data, or if a
|
||||
L{send} call can't immediately dispose of the data, an error exception
|
||||
is raised. In blocking mode, the calls block until they can proceed.
|
||||
is raised. In blocking mode, the calls block until they can proceed. An
|
||||
EOF condition is considered "immediate data" for L{recv}, so if the
|
||||
channel is closed in the read direction, it will never block.
|
||||
|
||||
C{chan.setblocking(0)} is equivalent to C{chan.settimeout(0)};
|
||||
C{chan.setblocking(1)} is equivalent to C{chan.settimeout(None)}.
|
||||
|
|
Loading…
Reference in New Issue