I recently had some issues when starting a large number of connections quickly. I am not sure if I reached the maximum number of connection during a spike on my server but the pgsql_connection_sup gets stuck from time to time and its mailbox fill-up until I a manually restart the node or kill the process.
The supervisor seems to get stuck in here https://github.com/semiocast/pgsql/blob/master/src/pgsql_connection.erl#L453. Adding a short timeout like {timeout, 500} seems to do solve the problem.
It would be nice to have this setting as an option. I can try to work on a PR if you are interested.
I recently had some issues when starting a large number of connections quickly. I am not sure if I reached the maximum number of connection during a spike on my server but the
pgsql_connection_supgets stuck from time to time and its mailbox fill-up until I a manually restart the node or kill the process.The supervisor seems to get stuck in here https://github.com/semiocast/pgsql/blob/master/src/pgsql_connection.erl#L453. Adding a short timeout like
{timeout, 500}seems to do solve the problem.It would be nice to have this setting as an option. I can try to work on a PR if you are interested.