Sha256: e302587c7d247403b17672811642eccf3efa159d18857730d35164c90ac6b6f7
Contents?: true
Size: 608 Bytes
Versions: 79
Compression:
Stored size: 608 Bytes
Contents
PGHOST = "localhost" PGDB = "test" SOCKHOST = "it-trac.laika.com" require("cipherstash-pg") $stderr.puts("connecting to postgres://#{PGHOST}/#{PGDB}") conn = CipherStashPG.connect(PGHOST, :dbname => (PGDB)) require("socket") require("openssl") $stderr.puts("Connecting to #{SOCKHOST}") sock = TCPSocket.open(SOCKHOST, 443) ctx = OpenSSL::SSL::SSLContext.new sock = OpenSSL::SSL::SSLSocket.new(sock, ctx) sock.sync_close = true $stderr.puts("Attempting to connect...") begin sock.connect rescue Errno $stderr.puts("Got an error connecting, but no segfault.") else $stderr.puts("Nope, no segfault!") end
Version data entries
79 entries across 79 versions & 1 rubygems