{
  "id": "go/http-client-connection-reset",
  "signature": "read: connection reset by peer",
  "signature_zh": "读取: 对端重置连接",
  "regex": "read:\\ connection\\ reset\\ by\\ peer",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "服务器在客户端读取响应前关闭了TCP连接",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器在客户端读取响应前关闭了TCP连接",
  "versions": [
    {
      "version": "1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "可能导致数据不一致或重复提交",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "不能解决服务器主动关闭连接的问题",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "使用http.Client的Retry机制，检查幂等性后重试",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "设置Transport的MaxIdleConnsPerHost",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}