<div dir="ltr"><div><div>Hello,<br><br></div><div>When I run this:<br><br>-----------------------------<br>ssh:start().<br>{ok, Conn} = ssh:connect("myip", 22, [ {user,"myuser"} ], 5000).<br>{ok, Channel} = ssh_connection:session_channel(Conn, 5000).<br><br>L = fun Loop(N) -><br> receive<br>   {ssh_cm,_,{_,_,_,Data}} -><br>     Loop(N + byte_size(Data))<br> after<br>   5000 -> io:format("~p~n",[N])<br> end<br>end.<br><br>ssh_connection:exec(Conn, Channel, "yes", 5000).<br><br>L(0).<br></div><div>-----------------------------<br><br></div><div>I get the magic number 65536. A 'flush().' only says 'ok'. So no more messages on my inbox.<br><br></div><div>This happens running any command that generates a long enough output, not only 'yes'. Anything like 'while true; do echo; done;' or 'cat longenough.txt' would hit a similar limit.<br></div><div><br></div>Why is that? Can I go past this limit?<br><br></div>Thanks.<br></div>