pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.5k stars 379 forks source link

The file upload hangs when the VPN server is disconnected. #540

Closed dwlpra closed 1 year ago

dwlpra commented 1 year ago

I am having an issue when sending files to SFTP. When the internet disconnects, the file transfer will resume when not all files have been sent. However, when the VPN to access the server disconnects, the file transfer will hang and cause the program to stop sending files. I have no clue on how to solve this. I have tried using an infinite loop to open a new connection when the internet disconnects, and it works. But when the VPN disconnects, it really makes the program hang

drakkan commented 1 year ago

duplicate of #502