24 Jun
2009
24 Jun
'09
11:46 p.m.
Malthe Borch wrote:
On MySQL, it's necessary to supply to ``pool_recycle`` parameter on engine creation, else the connection dies after some timeout and the pool is unable to hand out a session.
The result of this is that the first request fails whenever the connection has been dropped.
Attached is a patch that allows supplying these pool-related configuration options directly in the ZCML directive (db:engine).
\malthe
I would rather we did not hardcode the defaults from SQLAlchemy into the engine directive (I guess they could change in future). Instead use a default of None and only supply the parameter if the config option is set. Laurence