{
  "id": "go/net-http-tls-handshake-timeout",
  "signature": "error: net/http: TLS handshake timeout",
  "signature_zh": "错误：net/http：TLS握手超时",
  "regex": "error:\\ net/http:\\ TLS\\ handshake\\ timeout",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The TLS handshake with the server did not complete within the configured timeout, often due to network latency or server overload.",
  "root_cause_type": "generic",
  "root_cause_zh": "与服务器的TLS握手未在配置的超时内完成，通常由于网络延迟或服务器过载。",
  "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": "Increasing timeout indefinitely",
      "why_fails": "May mask underlying network issues; better to handle with retry logic.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set a reasonable TLS handshake timeout and use retry with backoff",
      "success_rate": 0.9,
      "how": "transport := &http.Transport{\n    TLSHandshakeTimeout: 10 * time.Second,\n}\nclient := &http.Client{Transport: transport}\n// retry with exponential backoff",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}