Gateway.py 文件源码

python
阅读 41 收藏 0 点赞 0 评论 0

项目:kiota 作者: Morteo 项目源码 文件源码
def start(self):

    while True:
      try:
        self.connect()
        while True:
          #time.sleep(0.01) # attempt to reduce number of OSError: [Errno 104] ECONNRESET 
          self.client.check_msg()
          #time.sleep(0.01) # attempt to reduce number of OSError: [Errno 104] ECONNRESET 
          self.push()
          time.sleep(0.01)
      except OSError as e:
          Util.log(self,"failed to connect, retrying....", e)
          time.sleep(self.config["wait_to_reconnect"])

    self.client.disconnect()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号