improve yamux logging (#4952)

This commit is contained in:
fatedier
2025-08-25 17:52:58 +08:00
committed by GitHub
parent 80d3f332e1
commit 610e5ed479
6 changed files with 74 additions and 7 deletions

View File

@@ -276,10 +276,12 @@ func (ctl *Control) heartbeatWorker() {
}
func (ctl *Control) worker() {
xl := ctl.xl
go ctl.heartbeatWorker()
go ctl.msgDispatcher.Run()
<-ctl.msgDispatcher.Done()
xl.Debugf("control message dispatcher exited")
ctl.closeSession()
ctl.pm.Close()