Improving Elixir FTP Client Functionality with GenServer

21
clicks
Improving Elixir FTP Client Functionality with GenServer

Source: elixirforum.com

Type: Discussion

The content critiques current code for an Elixir FTP client that uses GenServer to handle FTP operations. It highlights a specific problem where the call to :ftp.ls/0 can crash if the response takes longer than 5 seconds, suggesting that a longer timeout or using :infinity could be better. The author shares a related personal experience with FTP, emphasizing the importance of handling slow server issues and proposing a fault-tolerance approach by reconnecting for every operation.

© HashMerge 2024