Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
More leaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Navarro Bosch committed Mar 8, 2017
1 parent 6911e91 commit b4ff481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone.server/plone/server/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def traverse(request, parent, path):
request.conn = context.conn
else:
# Create a new conection
if len(context._db.pool.all) > context._db.pool._size + 5:
while len(context._db.pool.all) > context._db.pool._size + 5:
context._db.pool._reduce_size(strictly_less=True)
await asyncio.sleep(2)
print('BEFORE AVAILABLE: %d' % len(context._db.pool.available))
Expand Down

0 comments on commit b4ff481

Please sign in to comment.