vendor: update github.com/goftp/server to fix hang while reading a file from the server

See: https://forum.rclone.org/t/minor-issue-with-linux-ftp-client-and-rclone-ftp-access-denied/8959
This commit is contained in:
Nick Craig-Wood 2019-03-17 09:30:57 +00:00
parent f4a754a36b
commit 1318be3b0a
4 changed files with 9 additions and 4 deletions

View file

@ -698,6 +698,9 @@ func (cmd commandRetr) Execute(conn *Conn, param string) {
defer data.Close()
conn.writeMessage(150, fmt.Sprintf("Data transfer starting %v bytes", bytes))
err = conn.sendOutofBandDataWriter(data)
if err != nil {
conn.writeMessage(551, "Error reading file")
}
} else {
conn.writeMessage(551, "File not available")
}