diff options
Diffstat (limited to 'test/openssl/ssl_server.rb')
-rw-r--r-- | test/openssl/ssl_server.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/openssl/ssl_server.rb b/test/openssl/ssl_server.rb index 5e1303379f..556c28b84c 100644 --- a/test/openssl/ssl_server.rb +++ b/test/openssl/ssl_server.rb @@ -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 |