elixir-ecto / db_connection

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

`queue: false` checkout can incorrectly error in poolboy pool #39

Closed fishcakez closed 8 years ago

fishcakez commented 8 years ago

During client check in:

Similar can happen on disconnect check in with queue: false but that is likely desired as connection not immediately available. However if queue: true:

However if we the old client sends disconnect to Connection before checking in to poolboy (not current behaviour) the disconnect/connect would always arrive before the new client checkout. This means the new client would always be blocked waiting for the connection, which may or may not succeed.

fishcakez commented 8 years ago

Fixed in efe1f8a6e2ccc7d59a1ad0d986c0261fa6f18c0e