mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
WebDAV: add caching for authenticated users
In this way we get a big performance boost
This commit is contained in:
@@ -89,7 +89,9 @@ func (t *transfer) ReadAt(p []byte, off int64) (n int, err error) {
|
||||
atomic.AddInt64(&t.BytesSent, int64(readed))
|
||||
|
||||
if e != nil && e != io.EOF {
|
||||
t.TransferError(e)
|
||||
if t.GetType() == common.TransferDownload {
|
||||
t.TransferError(e)
|
||||
}
|
||||
return readed, e
|
||||
}
|
||||
t.HandleThrottle()
|
||||
|
||||
Reference in New Issue
Block a user