1
0
Fork 0
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:
nobu 2005-02-16 14:58:25 +00:00
parent 1fdf66ad67
commit 482abfc851

View file

@ -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