Tryton - Issues

 

Message38369

Author ced
Recipients
Date 2018-02-14.13:34:15
Content
The methods list and init on Database take a connection but do not ensure to always put it back with a try/finally. Normally the code should not fail on normal condition but not under load stress. This may lead to connection being kept in the pool and never reused.
We should always guarantee to put back the connection to the pool with a try/finally.
History
Date User Action Args
2018-02-14 13:34:16cedsetmessageid: <1518611656.11.0.197530453579.issue7137@tryton.org>
2018-02-14 13:34:16cedlinkissue7137 messages
2018-02-14 13:34:15cedcreate