Browse Source

Suppress accept proxyproto failed #65

zakuwaki 3 years ago
parent
commit
ef013e0639
1 changed files with 5 additions and 1 deletions
  1. 5 1
      inbound/default_tcp.go

+ 5 - 1
inbound/default_tcp.go

@@ -40,7 +40,11 @@ func (a *myInboundAdapter) loopTCPIn() {
 	for {
 		conn, err := tcpListener.Accept()
 		if err != nil {
-			return
+			if E.IsClosed(err) {
+				return
+			}
+			a.logger.Error("accept: ", err)
+			continue
 		}
 		go a.injectTCP(conn, adapter.InboundContext{})
 	}