ssh_sftp:write_file hangs in case of timeout

József Bérces jozsef.berces@REDACTED
Wed Jul 1 15:58:10 CEST 2020


I encountered strange behavior of ssh_sftp:write_file/4 when it times out. Instead of returning {error, Reason}, it just hangs. Checking the process_info, the process is in gen:do_call and the timeout signal is in its message queue:

(xxxx@REDACTED)7> process_info(pid(0,1505,0)).
{garbage_collection,[{max_heap_size,#{error_logger => true,kill => true,size => 0}},

This is with Erlang/OTP 20 [erts-9.0] on Raspberry Pi.

Does anyone know if this has been fixed in a newer Erlang release?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list