mirror of
https://github.com/traefik/traefik.git
synced 2026-05-05 20:36:20 +02: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…
x
Reference in New Issue
Block a user