[erlang-questions] sftp closing on big file

Bengt Kleberg <>
Thu Dec 8 13:51:15 CET 2016


Using erlang/otp_19.1 I attempt to write a 1171 MB file using 
ssh_sftp:write_file/4, but it fails with {error,closed} around 
(different amount at each attempt) 1000 MB.

Manually doing "scp" works. Many other, smaller, files also work with 

I could look at this using Wireshark, but perhaps there is something 
obvious that somebody could suggest/knows?


More information about the erlang-questions mailing list