mirror of https://github.com/gorilla/websocket.git
Merge pull request #208 from FZambia/flate_write_pool_fix
fix flate write pool size to work with best compression
This commit is contained in:
commit
4e4c8d08b4
|
@ -19,7 +19,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
flateWriterPools [maxCompressionLevel - minCompressionLevel]sync.Pool
|
flateWriterPools [maxCompressionLevel - minCompressionLevel + 1]sync.Pool
|
||||||
flateReaderPool = sync.Pool{New: func() interface{} {
|
flateReaderPool = sync.Pool{New: func() interface{} {
|
||||||
return flate.NewReader(nil)
|
return flate.NewReader(nil)
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue