Skip to content

Commit

Permalink
Merge pull request #95 from sillyfrog/master
Browse files Browse the repository at this point in the history
Start the session immediately in the read loop
  • Loading branch information
omrikiei authored Sep 21, 2023
2 parents b614182 + e96a997 commit ef5bfe4
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 ef5bfe4

Please sign in to comment.