From f7c3eff58a209671641227acf4886d0118e41db9 Mon Sep 17 00:00:00 2001 From: mohanson Date: Wed, 7 Aug 2024 14:05:31 +0800 Subject: [PATCH] 2024-08-07 14:05:31 --- protocol/czar/engine.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocol/czar/engine.go b/protocol/czar/engine.go index 98258ef..3b2bc6d 100644 --- a/protocol/czar/engine.go +++ b/protocol/czar/engine.go @@ -168,6 +168,7 @@ func (c *Client) Run() { sid = 2 } case err == nil: + log.Println("czar: mux init") mux = NewMuxClient(srv) rtt = 0 sid = 1 @@ -176,9 +177,11 @@ func (c *Client) Run() { select { case c.Mux <- mux: case <-mux.rdn: + log.Println("czar: mux done") sid = 0 case <-c.Cancel: - sid = 3 + log.Println("czar: mux done") + sid = 2 } case 2: mux.Close()