mirror of
https://github.com/containous/traefik.git
synced 2024-10-26 08:55:09 +03:00
Rework condition to not log on timeout
This commit is contained in:
parent
a42d396ed2
commit
61bb3ab991
@ -349,7 +349,7 @@ func clientHelloInfo(br *bufio.Reader) (*clientHello, error) {
|
||||
hdr, err := br.Peek(1)
|
||||
if err != nil {
|
||||
var opErr *net.OpError
|
||||
if !errors.Is(err, io.EOF) && (!errors.As(err, &opErr) || opErr.Timeout()) {
|
||||
if !errors.Is(err, io.EOF) && (!errors.As(err, &opErr) || !opErr.Timeout()) {
|
||||
log.WithoutContext().Errorf("Error while Peeking first byte: %s", err)
|
||||
}
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user