Skip to content

Commit

Permalink
fix(ftp-server): large transfer leads to client timeout (#7639)
Browse files Browse the repository at this point in the history
* fix(ftp-server): client timeout to wait a large file upload to netdisk

* fix(ftp-server): driver alist v3 upload failed and temp files do not be deleted
  • Loading branch information
KirCute authored Dec 12, 2024
1 parent ecefa5e commit 201e25c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/ftp/fsup.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,7 @@ func (f *FileUploadProxy) Close() error {
WebPutAsTask: false,
}
s.SetTmpFile(f.buffer)
return fs.PutDirectly(f.ctx, dir, s, true)
s.Closers.Add(f.buffer)
_, err = fs.PutAsTask(f.ctx, dir, s)
return err
}

0 comments on commit 201e25c

Please sign in to comment.