You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following bug lived in our service for many month, once a few days producing strange error messages. I've even fixed a real bug in aiopg trying to figure out what is going on:
async with request.app["db"].acquire() as db:
await func1(db)
await func2(db)
Connection has been returned to pool, but is still being used outside of pool management logic. This can lead to various concurrency conflicts.
In my opinion, connections that are managed by the pool, should have some flag that either issues warning or raises exception that prevents using them this way. If community agrees, I can implement this and issue a pull-request.
The text was updated successfully, but these errors were encountered:
The following bug lived in our service for many month, once a few days producing strange error messages. I've even fixed a real bug in
aiopg
trying to figure out what is going on:Connection has been returned to pool, but is still being used outside of pool management logic. This can lead to various concurrency conflicts.
In my opinion, connections that are managed by the pool, should have some flag that either issues warning or raises exception that prevents using them this way. If community agrees, I can implement this and issue a pull-request.
The text was updated successfully, but these errors were encountered: