Skip to content

Commit

Permalink
Merge pull request #97 from Conning/elastic-accept-race-condition
Browse files Browse the repository at this point in the history
race condition for multiple in-bound connections
  • Loading branch information
tanmaykm authored Aug 31, 2018
2 parents 91f04c1 + 720acbf commit bff915e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/elastic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ struct ElasticManager <: ClusterManager

@async begin
while true
s = accept(l_sock)
@async process_worker_conn(lman, s)
let s = accept(l_sock)
@async process_worker_conn(lman, s)
end
end
end

Expand Down

0 comments on commit bff915e

Please sign in to comment.