SSL connection has been closed unexpectedly

89 views
Skip to first unread message

pieter hartel

unread,
Dec 29, 2024, 4:18:35 AM12/29/24
to crt.sh
I'm not sure why I often get an error "SSL connection has been closed unexpectedly" from the python code below. Is there maybe something wrong with timeouts?

Of course I try not to hammer the server; the real code contains several time.sleep() commands....

--pieter

host = "crt.sh"
port = 5432
user = "guest"
password = ""
dbname = "certwatch"
conn = psycopg2.connect( host=host, port=port, user=user, database=dbname, password=password )
conn.set_session( readonly=True, autocommit=True )
cur = conn.cursor( )
cur.execute( query )
result = list( cur.fetchall( ) )

Reply all
Reply to author
Forward
0 new messages