Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Connection closed

未关闭
#90 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

toitlang/pkg-http 的其他 Issue

查看 toitlang/pkg-http 的全部 Issue

相似的 Issue

更多 Embedded & IoT Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。