We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd99b4d + 4951ec2 commit 58bf9f3Copy full SHA for 58bf9f3
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