Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
PostgreSQL: server closed the connection unexpectedly #357
Steps to reproduce:
Maybe this is rather an architectural problem in my code, however I used the same model as in the examples.
I did some debugging, so if I don't do anything, the connection probably times out after a while, in core.py line 819, an exception is catched (cursor's closed attribute is True)
The exception is caught, and now it tries to reconnect:
Thanks for reporting, now Pony will again reconnect to PostgreSQL database automatically after the server closes the connection.
By the way, it looks strange that your server drops connection after 10-15 minutes, maybe there is some misconfiguration in your database connection settings.