This project is archived and is in readonly mode.
Async connection blocks when server unavailable
-
Daniele Varrazzo
Hello, thank you for the report.
Can you test with the code in the branch "ticket-194" in my repos?
https://github.com/dvarrazzo/psycopg/tree/ticket-194
Thank you very much.
-
Adam Petrovic
Great, script does not block anymore. Now connection.poll() throws
for SSL connection andOperationalError: could not send SSL negotiation packet: Resource temporarily unavailable
for unsecured one. I guess thats corrent behaviour.OperationalError: could not send startup packet: Resource temporarily unavailableThanks for quick fix.
-
Daniele Varrazzo
- State changed from new to resolved
Thank you for the diagnosis: I will mention your contribution in the news (if you don't mind).
-
Adam Petrovic
I don't mind, happy to help :)