Reduce the time between ping from 5 min to 10s. Try to reconnect after 30s without messages from the server.
Merge branch 'features/better-postgresql-connection-handling'