We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd99b4d commit 4951ec2Copy full SHA for 4951ec2
tornado_mysql/pools.py
@@ -73,7 +73,7 @@ def _get_conn(self):
73
return fut
74
75
# Open new connection
76
- if self.max_open and self._opened_conns < self.max_open:
+ if self.max_open == 0 or self._opened_conns < self.max_open:
77
self._opened_conns += 1
78
_debug("Creating new connection:", self.stat())
79
return connect(**self.connect_kwargs)
0 commit comments