Skip to content

Commit

Permalink
Start the session immediately in the read loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sillyfrog committed Feb 7, 2023
1 parent 4dd6e3a commit e96a997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit e96a997

Please sign in to comment.