forked from Ivasoft/traefik
Do not stop to listen on tcp listeners on temporary errors
This commit is contained in:
@@ -135,6 +135,10 @@ func (e *TCPEntryPoint) startTCP(ctx context.Context) {
|
||||
conn, err := e.listener.Accept()
|
||||
if err != nil {
|
||||
logger.Error(err)
|
||||
if netErr, ok := err.(net.Error); ok && netErr.Temporary() {
|
||||
continue
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user