elixir-ecto / db_connection

Database connection behaviour
http://hexdocs.pm/db_connection/DBConnection.html
309 stars 112 forks source link

DBConnection.Ownership #15

Closed josevalim closed 8 years ago

josevalim commented 8 years ago
fishcakez commented 8 years ago

Shall we merge this and we can work on the remaining tasks in separate PRs or would you like to continue with this branch?

fishcakez commented 8 years ago

Checkin/stop/disconnect should be casts to pids so they dot crash if the pool is gone.

We starting the owner process we should link to the manager until the reply is sent. This ensures the manager goes down if a reply is not sent. When sending a reply from another process it should always be linked directly or indirectly via the supervision tree so that the target of the call exits if a reply isn't sent.

josevalim commented 8 years ago

@fishcakez I have made checkin async but ran into issues for disconnect and stop. Can you please give it a try? Everything else is done. :bowtie:

fishcakez commented 8 years ago

:heart_eyes_cat: great stuff!! I will tag 0.2 in the morning.

josevalim commented 8 years ago

Thanks for the remaining fixes! Beautiful!