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.