Hi,I try pool demo,it doesn't run.
woshihaoren opened this issue · 4 comments
woshihaoren commented
centos7.1
python2.7.5
it‘s block,and doesn't run print(n, cur.fetchall()).
[root@localhost Ease]# python t1.py
0 sleeping 1 seconds
1 sleeping 1 seconds
2 sleeping 1 seconds
3 sleeping 1 seconds
4 sleeping 1 seconds
5 sleeping 1 seconds
6 sleeping 1 seconds
7 sleeping 1 seconds
8 sleeping 1 seconds
9 sleeping 1 seconds
wikimore commented
hi,woshihaoren:
this maybe a bug, because the default max_open_connections is 0, you can set the value of max_open_connections to any value bigger than 0,then it will work.
woshihaoren commented
Yeah, you are right. it's OK
shuax commented
I also have the same problem.This example is too strange.