From e96a9971214dc292131f60abb07c8bb2ed9bb296 Mon Sep 17 00:00:00 2001 From: Sillyfrog Date: Tue, 7 Feb 2023 10:38:38 +1000 Subject: [PATCH] Start the session immediately in the read loop --- pkg/server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/server.go b/pkg/server/server.go index 266bc49..4274f95 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -125,6 +125,7 @@ func ReceiveData(conf *Config, stream pb.Tunnel_InitTunnelServer) { func readConn(ctx context.Context, conf *Config, session *common.Session, sessions chan<- *common.Session) { conf.log.WithField("session", session.Id.String()).Info("new connection") + sessions <- session for {