Closed mixed closed 3 years ago
This is intentional, connections that comes from pool have an additional method 'release' that permits to give back connection to pool. That's the standard case when using pool to reuse connections.
About the memory leak, i presume you mean the pool still have idle connection, right ?
pool.end();
could be called to avoid any leak, but pools normally are never closed, and if added in example, that would create a lot of problems :)
Thank you. I understand what it means. It seems to be correct because it is a pool. :)
The method name seems to be wrong. In this example, a memory leak occurs. :)