diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-12 22:31:14 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-12 22:31:14 +0900 |
| commit | 5723f4211a06bc320efdca844b399a2a5b5162ca (patch) | |
| tree | 9088c263f44e62dbf726e72c6260ee8b132f905f /src/SocketCore.cc | |
| parent | 89c1916fa57d87ea09142cc3588044c691d1928f (diff) | |
sftp: Seek to the correct position to resume, fix slow start of transfer
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 05ee28bf..1d78d2f8 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -1090,6 +1090,13 @@ bool SocketCore::sshSFTPStat(int64_t& totalLength, time_t& mtime, return true; } +void SocketCore::sshSFTPSeek(int64_t pos) +{ + assert(sshSession_); + + sshSession_->sftpSeek(pos); +} + bool SocketCore::sshGracefulShutdown() { assert(sshSession_); |
