1
I have a code that query a database. If a timeout exception occurs for example during the execution of the query, the connection closure code and consequent return of the connection to the pool will not occur, I must use a Try-Finally to even with exception pass through the connection closure code?
It is considered good practice for you to close connections with bank in block
finally
precisely so that, in case of success or error, it always be closed.– StatelessDev