pkg/ioutils: lower bufReader reset timeout

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
unclejack 2015-08-28 23:13:02 +03:00
parent 0ffa6f1bb6
commit cab12d1a89

View file

@ -72,7 +72,7 @@ type bufReader struct {
// NewBufReader returns a new bufReader. // NewBufReader returns a new bufReader.
func NewBufReader(r io.Reader) io.ReadCloser { func NewBufReader(r io.Reader) io.ReadCloser {
timeout := rand.New(rndSrc).Intn(120) + 180 timeout := rand.New(rndSrc).Intn(90)
reader := &bufReader{ reader := &bufReader{
buf: &bytes.Buffer{}, buf: &bytes.Buffer{},