mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
* test/openssl/test_ssl.rb: removed unnecessary free port scanning of
test_ssl.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
28ef80bcda
commit
71da8cbd5a
2 changed files with 5 additions and 6 deletions
|
@ -123,12 +123,6 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
|||
|
||||
Socket.do_not_reverse_lookup = true
|
||||
tcps, port = choose_port(port0)
|
||||
begin
|
||||
tcps = TCPServer.new("127.0.0.1", port)
|
||||
rescue Errno::EADDRINUSE
|
||||
port += 1
|
||||
retry
|
||||
end
|
||||
|
||||
ssls = OpenSSL::SSL::SSLServer.new(tcps, ctx)
|
||||
ssls.start_immediately = start_immediately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue