I am trying to send a large binary (a couple MB) followed by an eof through an ssh channel using the following:<div><br></div><div><br></div><div>ssh_connection:send(Conn, Chan, BigBinary),</div><div>ssh_connection:send_eof(Conn, Chan),</div>
<div><br></div><div><br></div><div><br></div><div>send() returns immediately and the ssh processes will keep transmitting ssh packets until done.  Great.</div><div><br></div><div>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.</div>
<div><br></div><div>Is there any way to do a synchronous send_eof() or send()?</div><div><br></div><div><br></div><div>Thanks,</div><div>Dan.</div>