diff --git a/client/proxy.go b/client/proxy.go index 416f85e..818aebc 100644 --- a/client/proxy.go +++ b/client/proxy.go @@ -228,6 +228,7 @@ func (pxy *UdpProxy) InWorkConn(conn frpNet.Conn) { sendCh <- &msg.Ping{} }); errRet != nil { pxy.Trace("heartbeat goroutine for udp work connection closed") + break } } } diff --git a/utils/log/log.go b/utils/log/log.go index 241ddb2..ec6e077 100644 --- a/utils/log/log.go +++ b/utils/log/log.go @@ -23,7 +23,7 @@ import ( var Log *logs.BeeLogger func init() { - Log = logs.NewLogger(100) + Log = logs.NewLogger(200) Log.EnableFuncCallDepth(true) Log.SetLogFuncCallDepth(Log.GetLogFuncCallDepth() + 1) } @@ -43,7 +43,7 @@ func SetLogFile(logWay string, logFile string, maxdays int64) { } } -// value: error, warning, info, debug +// value: error, warning, info, debug, trace func SetLogLevel(logLevel string) { level := 4 // warning switch logLevel { diff --git a/utils/pool/pool.go b/utils/pool/buf.go similarity index 100% rename from utils/pool/pool.go rename to utils/pool/buf.go diff --git a/utils/pool/pool_test.go b/utils/pool/buf_test.go similarity index 100% rename from utils/pool/pool_test.go rename to utils/pool/buf_test.go