Fix EOF error
This commit is contained in:
parent
8b4efa1760
commit
ef8894ef26
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,9 @@ func (c *Conn) Read(p []byte) (n int, err error) {
|
|||
func clientHelloServerName(br *bufio.Reader) (string, bool, string) {
|
||||
hdr, err := br.Peek(1)
|
||||
if err != nil {
|
||||
if err != io.EOF {
|
||||
log.Errorf("Error while Peeking first byte: %s", err)
|
||||
}
|
||||
return "", false, ""
|
||||
}
|
||||
const recordTypeHandshake = 0x16
|
||||
|
|
Loading…
Reference in a new issue