Add concurrent Snowball extraction + options (#15836)

This commit is contained in:
Klaus Post
2022-10-18 22:50:21 +02:00
committed by GitHub
parent 9fff315555
commit bd3dfad8b9
4 changed files with 131 additions and 13 deletions

View File

@@ -1052,6 +1052,13 @@ var poolBuf8k = sync.Pool{
},
}
var poolBuf128k = sync.Pool{
New: func() interface{} {
b := make([]byte, 128<<10)
return b
},
}
// waitForHTTPStream will wait for responses where
// streamHTTPResponse has been used.
// The returned reader contains the payload and must be closed if no error is returned.