{
  "id": "go/io-reader-returns-partial-data-with-error",
  "signature": "error: read tcp 127.0.0.1:8080->127.0.0.1:34567: i/o timeout (partial read)",
  "signature_zh": "错误：读取 tcp 127.0.0.1:8080->127.0.0.1:34567：i/o超时（部分读取）",
  "regex": "error:\\ read\\ tcp\\ 127\\.0\\.0\\.1:8080\\->127\\.0\\.0\\.1:34567:\\ i/o\\ timeout\\ \\(partial\\ read\\)",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "An I/O operation timed out after reading partial data, leaving the application with incomplete data.",
  "root_cause_type": "generic",
  "root_cause_zh": "I/O操作在读取部分数据后超时，导致应用程序获得不完整数据。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Ignoring partial read and using data anyway",
      "why_fails": "May corrupt application state; always check n and error.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use io.ReadFull or io.ReadAll to ensure complete read",
      "success_rate": 0.9,
      "how": "buf := make([]byte, 1024)\nn, err := io.ReadFull(reader, buf)\nif err != nil { /* handle partial read */ }",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-08-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}