我使用uwsgi启动django应用程序,该应用程序在kazoo客户端实例中调用start
方法来连接zookeeper服务器,该程序挂起。即使我使用--enable-threads
。异常回溯如下,您能给我一些建议吗,非常感谢!
self._zk.start(timeout=timeout)
File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/client.py", line 559, in start
self.stop()
File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/client.py", line 613, in stop
self._safe_close()
File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/client.py", line 506, in _safe_close
if not self._connection.stop(timeout):
File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/protocol/connection.py", line 180, in stop
self.connection_stopped.wait(timeout)
File "/Users/rhys/.pyenv/versions/2.7.15/lib/python2.7/threading.py", line 614, in wait
self.__cond.wait(timeout)
File "/Users/rhys/.pyenv/versions/2.7.15/lib/python2.7/threading.py", line 359, in wait
_sleep(delay)