From 0fa25d095f7760efeb17585f961f9092e6ec1fc9 Mon Sep 17 00:00:00 2001 From: Daniel Goertzen Date: Thu, 6 Sep 2012 10:39:30 -0500 Subject: 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}. --- lib/ssh/doc/src/ssh_connection.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ssh/doc') 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 @@ send(ConnectionRef, ChannelId, Data, Timeout) -> send(ConnectionRef, ChannelId, Type, Data) -> send(ConnectionRef, ChannelId, Type, Data, TimeOut) -> - ok | {error, timeout} + ok | {error, timeout} | {error, closed} Sends channel data ConnectionRef = ssh_connection_ref() @@ -212,7 +212,7 @@ - send_eof(ConnectionRef, ChannelId) -> ok + send_eof(ConnectionRef, ChannelId) -> ok | {error, closed} Sends eof on the channel ChannelId. ConnectionRef = ssh_connection_ref() -- cgit v1.2.3