wait_for_connection silently hangs for 60s
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- backend, observability
调研方向
从 wait_for_connection 入口点开始,跟踪启动日志中显示的六次连接尝试。检查在 60 秒等待期间如何处理失败,然后让失败原因显示在日志中,并验证失败的连接不再表现得像是卡住了。
由索引模型根据 Issue 内容生成。
描述
It takes 60 seconds to connect to the HS in wait_for_connection, which suggests it's failed 6 times to do so. However, there doesn't appear to be any logs explaining why it's failed to connect so it looks like a hang. The bridge generally seems to work afterwards, so wondering if I am forgetting something.
[2021-11-01 15:29:44,139] [INFO@mau.init] Initialization complete in 0.59 seconds
[2021-11-01 15:29:44,140] [DEBUG@mau.init] Running startup actions...
[2021-11-01 15:29:44,140] [DEBUG@mau.init] Starting appservice...
[2021-11-01 15:29:44,140] [DEBUG@mau.as] Starting appservice web server on 0.0.0.0:29317
[2021-11-01 15:29:44,141] [INFO@mau.mx] Ensuring connectivity to homeserver
[2021-11-01 15:30:45,131] [DEBUG@mau.user.@foo:bar] Starting client due to ensure_started(even_if_no_session=False)
``
- 主要语言
- Python
- 星标
- 249
- 派生
- 84
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mautrix/python 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
-
bug
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
learningequality/ricecooker#747 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 76/100
run-llama/llama_index#23199 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
KhronosGroup/glTF-Blender-IO#2769 ·