Opened 16 years ago

Last modified 16 years ago

#997 defect closed fixed (fixed)

ConnectionPool allows the pool size to be grown

Reported by: mg Owned by:
Priority: high Milestone:
Component: Keywords: core
Cc: Dave Peticolas, mg Branch:


Change History (3)

comment:1 Changed 16 years ago by mg

The ConnectionPool creates a pool of threads each of which owns a connection.
The size of the connection pool is actually limited by the maximum number of
threads in the thread pool.

However, by starting another thread (deferToThread etc) and calling
ConnectionPool.connect() method, the size of the connection pool can be
exceeded. To release the connection ConnectionPool.disconnect() must be called
(even though conn.close() seems to be a more obvious choice).

Either the connect() method should be made "private" or the docstring should be
updated with a great big warning.

comment:2 Changed 16 years ago by Dave Peticolas

I updated the connect() docstring to warn of this behavior.

comment:3 Changed 11 years ago by <automation>

Note: See TracTickets for help on using tickets.