Commit 3d0a4381 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Only set splicing if pipes are resizable; we have no way to control

MaxReadSize, so a 128k read will not be spliceable.
parent 40eebacb
......@@ -8,11 +8,7 @@ import (
)
func (s *MountState) setSplice() {
s.canSplice = true
maxW := splice.MaxPipeSize() - 4096
if !splice.Resizable() && s.opts.MaxWrite > maxW {
s.opts.MaxWrite = maxW
}
s.canSplice = splice.Resizable()
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment