Change bufferSize back to 32

Shim use non-blocking send now, there is no need to set bufferSize to 2048,
it's a waste.

Signed-off-by: Shukui Yang <keloyangsk@gmail.com>
This commit is contained in:
Shukui Yang 2019-08-20 22:10:11 +08:00
parent 08061c7c3c
commit 21174cb497

View File

@ -31,7 +31,7 @@ import (
// ErrNoSuchProcess is returned when the process no longer exists // ErrNoSuchProcess is returned when the process no longer exists
var ErrNoSuchProcess = errors.New("no such process") var ErrNoSuchProcess = errors.New("no such process")
const bufferSize = 2048 const bufferSize = 32
type subscriber struct { type subscriber struct {
sync.Mutex sync.Mutex