* comment out sync on close for the SSL connection, since it was causing an infinite recursion when calling close
git-svn-id: file:///home/svn/incoming/trunk@3412 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9913f6d953
commit
6927b64028
|
@ -50,7 +50,8 @@ begin
|
|||
# Build the SSL connection
|
||||
self.sslctx = OpenSSL::SSL::SSLContext.new
|
||||
self.sslsock = OpenSSL::SSL::SSLSocket.new(self, self.sslctx)
|
||||
self.sslsock.sync_close = true
|
||||
# XXX - enabling this causes infinite recursion, so disable for now
|
||||
# self.sslsock.sync_close = true
|
||||
self.sslsock.connect
|
||||
end
|
||||
|
||||
|
|
|
@ -30,6 +30,10 @@ class Rex::Socket::SslTcp::UnitTest < Test::Unit::TestCase
|
|||
}
|
||||
|
||||
assert_match(/^HTTP\/1./, head_response, "valid head response")
|
||||
|
||||
assert_nothing_raised {
|
||||
t.close
|
||||
}
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue