Closed acham closed 5 years ago
Hmm...
bufio.ReadByte shouldn't panic. It looks like a bug in bufio package. Or...
Or you use telnet connection concurrently. Try compile your program with race detector enabled.
It was indeed a well-hidden race condition. Thanks.
We sometimes use
SkipUntil
with a single string argument in our code, for exampleteln.SkipUntil("querymvisvc")
, and this sometimes leads to the error stack below: