* 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-b9f4589650da
unstable
bmc 2006-01-20 19:04:17 +00:00
parent 9913f6d953
commit 6927b64028
2 changed files with 6 additions and 1 deletions

View File

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

View File

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