mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/openssl/ssl_server.rb: get rid of race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1fdf66ad67
commit
482abfc851
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ $stdout.puts Process.pid
|
|||
$stdout.puts port
|
||||
|
||||
loop do
|
||||
ssl = ssls.accept
|
||||
Thread.start{
|
||||
Thread.start(ssls.accept) {|ssl|
|
||||
q = Queue.new
|
||||
th = Thread.start{ ssl.write(q.shift) while true }
|
||||
while line = ssl.gets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue