aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/doc/src
diff options
context:
space:
mode:
authorDaniel Goertzen <[email protected]>2012-09-06 10:39:30 -0500
committerIngela Anderton Andin <[email protected]>2012-10-03 19:25:29 +0200
commit0fa25d095f7760efeb17585f961f9092e6ec1fc9 (patch)
treebc2f46984237441d55e20ada4d630693bfa88dcc /lib/ssh/doc/src
parent79d51c19399a5666eea74118d36812ade5a5b757 (diff)
downloadotp-0fa25d095f7760efeb17585f961f9092e6ec1fc9.tar.gz
otp-0fa25d095f7760efeb17585f961f9092e6ec1fc9.tar.bz2
otp-0fa25d095f7760efeb17585f961f9092e6ec1fc9.zip
ssh: ssh_connection:channel_data() and send_eof() now return {error, closed} for closed or invalid channels.
ssh_connection:handle_msg(#ssh_msg_channel_close...) will now cause any send() that was in progress to immediately return {error,closed}.
Diffstat (limited to 'lib/ssh/doc/src')
-rw-r--r--lib/ssh/doc/src/ssh_connection.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/doc/src/ssh_connection.xml b/lib/ssh/doc/src/ssh_connection.xml
index 9942306b93..a9ae13d556 100644
--- a/lib/ssh/doc/src/ssh_connection.xml
+++ b/lib/ssh/doc/src/ssh_connection.xml
@@ -196,7 +196,7 @@
<name>send(ConnectionRef, ChannelId, Data, Timeout) -></name>
<name>send(ConnectionRef, ChannelId, Type, Data) -></name>
<name>send(ConnectionRef, ChannelId, Type, Data, TimeOut) ->
- ok | {error, timeout}</name>
+ ok | {error, timeout} | {error, closed}</name>
<fsummary>Sends channel data </fsummary>
<type>
<v> ConnectionRef = ssh_connection_ref() </v>
@@ -212,7 +212,7 @@
</func>
<func>
- <name>send_eof(ConnectionRef, ChannelId) -> ok </name>
+ <name>send_eof(ConnectionRef, ChannelId) -> ok | {error, closed}</name>
<fsummary>Sends eof on the channel <c>ChannelId</c>. </fsummary>
<type>
<v> ConnectionRef = ssh_connection_ref() </v>