[erlang-questions] ssh synchronous send_eof()?

7 views
Skip to first unread message

Daniel Goertzen

unread,
Aug 28, 2012, 11:23:28 AM8/28/12
to Erlang Questions
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()?


Thanks,
Dan.
Reply all
Reply to author
Forward
0 new messages