Vibe.d documentation about lockConnection states:

Note that, after retrieving a connection with lockConnection, the caller has to make sure that the connection is actually physically open and to reopen it if necessary. The ConnectionPool class has no knowledge of the internals of the connection objects.

Let's assume the pool is returning a TCP connection:

  • there's no method for 'reopening' it, so it's not possible.
  • there's no method to remove that 'closed' connection from the pool.

So, what I've to do with that closed pooled connection? What's the correct way to use a Connection Pool in that case?

Thanks

/Paolo