brouberol/izk

Timeout on zk connection at startup

开放

#15 创建于 2018年4月3日

 (0 条评论) (0 个反应) (0 位负责人)Python (2 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (27 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

This is just bad XP

(izk) λ  izk git:(master) ✗ izk
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
^CTraceback (most recent call last):
  File "/Users/balthazarrouberol/dd/.envs/izk/bin/izk", line 11, in <module>
    load_entry_point('izk', 'console_scripts', 'izk')()
  File "/Users/balthazarrouberol/code/izk/izk/prompt.py", line 71, in main
    read_only=not args.write
  File "/Users/balthazarrouberol/code/izk/izk/zk.py", line 8, in __enter__
    self.start()
  File "/Users/balthazarrouberol/dd/.envs/izk/lib/python3.6/site-packages/kazoo/client.py", line 563, in start
    event.wait(timeout=timeout)
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 551, in wait
    signaled = self._cond.wait(timeout)
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 299, in wait
    gotit = waiter.acquire(True, timeout)
KeyboardInterrupt

Fail with a helpful error message instead.

贡献者指南