{
  "id": "go/http-write-timeout",
  "signature": "http: write tcp 127.0.0.1:8080->127.0.0.1:58932: write: broken pipe",
  "signature_zh": "http: 写入 tcp 127.0.0.1:8080->127.0.0.1:58932: 写入: 管道损坏",
  "regex": "http:\\ write\\ tcp\\ 127\\.0\\.0\\.1:8080\\->127\\.0\\.0\\.1:58932:\\ write:\\ broken\\ pipe",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "客户端在服务端写入响应前关闭了连接，导致服务端写入时发生broken pipe。",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端在服务端写入响应前关闭了连接，导致服务端写入时发生broken pipe。",
  "versions": [
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "忽略错误但可能造成服务端资源泄漏。",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "增加超时时间但客户端已断开，无效。",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.7,
      "how": "在写入前检查客户端连接状态，使用http.ResponseController处理。",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}