Connection closed
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
Start with pkg-http/connection.toit at the set_option call shown in the trace, then read pkg-http/client.toit around try_to_reuse_ and post_. Compare the failure with issue #89 and reproduce it in a long-running program that intermittently uses the HTTP connection. Done should include a confirmed relationship or diagnosis and a verified resolution.
由索引模型根据 Issue 内容生成。
描述
Got the following error on a log-running program that sporadically uses the http connection:
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.74>
******************************************************************************
EXCEPTION error.
Connection closed
0: tcp_set_option_ <sdk>/net/modules/tcp.toit:214:3
1: TcpSocket_.set_option_ <sdk>/net/modules/tcp.toit:89:12
2: TcpSocket.no_delay= <sdk>/net/modules/tcp.toit:137:33
3: Socket.no_delay= <sdk>/tls/socket.toit:121:22
4: Connection.send_headers <pkg:pkg-http>/connection.toit:117:22
5: RequestOutgoing.send <pkg:pkg-http>/request.toit:48:32
6: Client.post_.<block>.<block> <pkg:pkg-http>/client.toit:463:28
7: Client.try_to_reuse_.<block> <pkg:pkg-http>/client.toit:642:7
8: catch.<block> <sdk>/core/exceptions.toit:124:10
9: catch <sdk>/core/exceptions.toit:122:1
10: catch <sdk>/core/exceptions.toit:85:10
11: Client.try_to_reuse_ <pkg:pkg-http>/client.toit:641:5
12: Client.post_.<block> <pkg:pkg-http>/client.toit:460:7
13: SmallInteger_.repeat <sdk>/core/numbers.toit:1194:3
14: Client.post_ <pkg:pkg-http>/client.toit:458:19
15: Client.post_json <pkg:pkg-http>/client.toit:523:12
16: Client.request_ <pkg:toit-supabase>/supabase.toit:270:33
17: Client.request_ <pkg:toit-supabase>/supabase.toit:301:17
18: PostgRest.insert <pkg:toit-supabase>/supabase.toit:453:25
19: main.<block>.<lambda>.<block> main.toit:116:23
20: Mutex.do.<block> <sdk>/monitor.toit:28:27
21: __Monitor__.locked_.<block> <sdk>/core/monitor_impl_.toit:123:12
22: __Monitor__.locked_ <sdk>/core/monitor_impl_.toit:95:3
23: Mutex.do <sdk>/monitor.toit:28:3
24: main.<block>.<lambda> main.toit:115:15
25: main.<block>.<lambda> main.toit:129:17
Probably related to #89
- 主要语言
- Toit
- 星标
- 3
- 派生
- 2
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
toitlang/pkg-http 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
First class support for PATCH, DELETE, etc.可能重新可做 @erikcorry 于 1315 天前认领,目前没有进行中的 PR。 未关闭
-
Support and test ping and pong in websocket.可能重新可做 @erikcorry 于 1315 天前认领,目前没有进行中的 PR。 未关闭
查看 toitlang/pkg-http 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
zephyrproject-rtos/zephyr#123881 ·
维护者通常 2 天内回复
-
hw-verify platform:k2
难度 2/5 1-3 小时 新手友好度 65/100
prestonbrown/helixscreen#1933 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 78/100
MiSTer-devel/ZX-Spectrum_MISTer#79 ·
维护者通常 1 天内回复