31 浏览
0

最近几天的情况:

06.04 连接成功:

06.03 06.05都连接不上,一直卡着,也没有超时:

try:
        usdLogger.debug('准备连接天勤行情服务器')
         api = TqApi(auth=TqAuth('xxx', 'xxx'))
        usdLogger.debug('连接成功,准备查询合约代码')
        ...
        ...
        ...
     except Exception as e:
        usdLogger.error(traceback.format_exc())
        hwpush_sendMessage('无法连接行情服务器', '执行【更新合约代码】动作时,无法连接行情服务器,异常信息:' + repr(e), default_notifier)
        if api is not None:
            api.close()

请问可能是什么原因?

freesuu 编辑问题 7小时 前