|
@ -413,7 +413,7 @@ FOR_LOOP: |
|
|
// Peek into bufReader for debugging
|
|
|
// Peek into bufReader for debugging
|
|
|
if numBytes := c.bufReader.Buffered(); numBytes > 0 { |
|
|
if numBytes := c.bufReader.Buffered(); numBytes > 0 { |
|
|
log.Info("Peek connection buffer", "numBytes", numBytes, "bytes", log15.Lazy{func() []byte { |
|
|
log.Info("Peek connection buffer", "numBytes", numBytes, "bytes", log15.Lazy{func() []byte { |
|
|
bytes, err := c.bufReader.Peek(MinInt(numBytes, 100)) |
|
|
|
|
|
|
|
|
bytes, err := c.bufReader.Peek(cmn.MinInt(numBytes, 100)) |
|
|
if err == nil { |
|
|
if err == nil { |
|
|
return bytes |
|
|
return bytes |
|
|
} else { |
|
|
} else { |
|
|