We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7782783 commit 7eaf2cbCopy full SHA for 7eaf2cb
1 file changed
xconn/session.py
@@ -71,7 +71,7 @@ def __init__(self, base_session: types.BaseSession):
71
self._stopped = threading.Event()
72
73
# callback executor thread-pool
74
- self._executor = ThreadPoolExecutor(max_workers=cpu_count() or 4)
+ self._executor = ThreadPoolExecutor(max_workers=(cpu_count() or 1) * 4)
75
76
thread = threading.Thread(target=self._wait, daemon=True)
77
thread.start()
0 commit comments