Open
Description
I see that this library is using sync.Pool
to pool buffers for wsjon sub-package. sync.Pool
is suitable only for pooling objects of same size. If they are of different size, you have a problem: those buffers will just grow and grow never to shrink.
See golang/go#23199 for more background.