Closed joseroberto closed 3 years ago
This bug is weird, and it doesn't look like I can do anything with it.
The code in question:
var ba [1]byte
var n int
for {
n, err = c.r.Read(ba[:]) // line in question
if err != nil {
return
}
if n == 1 {
break
}
}
The actual codebase resulting in an error is from go's stdlib: crypto/tls/conn.go:1378 i.e. a call to crypto/tls.(*Conn).Handshake(...)
This is outside of codec, and so this doesn't look like na issue with go-codec library.
I think you should raise an issue with the go's crypto library where the error was seen.
It happens under heavy load situations:
Version: github.com/ugorji/go/codec v1.2.4