Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jan 28, 2021
1 parent 18c7d56 commit 5a60bd7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func (s *server) handle(soc transport.Socket) {
break
}

//TODO: Fix potential race condition where the socket gets closed before this method sends the response
go s.handleRequest(&req, soc)
s.handleRequest(&req, soc)
}
}()
}
Expand Down

0 comments on commit 5a60bd7

Please sign in to comment.