Skip to content

Commit 96a9023

Browse files
authored
fix error
1 parent 45321c2 commit 96a9023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frameworks/Python/blacksheep/app-socketify.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=%s WHERE id=%s'
1414
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
1515
CORE_COUNT = multiprocessing.cpu_count()
16+
MAX_DB_CONNECTIONS = 2000
1617

1718
MAX_POOL_SIZE = min(CORE_COUNT * 2, MAX_DB_CONNECTIONS // CORE_COUNT, 32)
1819
MIN_POOL_SIZE = max(1, MAX_POOL_SIZE // 2)

0 commit comments

Comments
 (0)