[erlang-questions] ssh synchronous send_eof()?

Daniel Goertzen <>
Tue Aug 28 17:23:28 CEST 2012

I am trying to send a large binary (a couple MB) followed by an eof through
an ssh channel using the following:

ssh_connection:send(Conn, Chan, BigBinary),
ssh_connection:send_eof(Conn, Chan),

send() returns immediately and the ssh processes will keep transmitting ssh
packets until done.  Great.

send_eof() causes the eof message to be sent *asynchronously* without
waiting for the above data to finish.. only about 87kB gets through before
the remote system gets the eof and stops listening.  Not great.

Is there any way to do a synchronous send_eof() or send()?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120828/d8225cff/attachment.html>

More information about the erlang-questions mailing list