{
  "id": "go/grpc-keepalive-too-frequent",
  "signature": "rpc error: code = Unavailable desc = connection error: desc = \"transport: http2Client.notifyError got notified that the client transport was broken EOF\"",
  "signature_zh": "rpc 错误：code = Unavailable desc = 连接错误：desc = \"transport：http2Client.notifyError 收到通知客户端传输已损坏 EOF\"",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ connection\\ error:\\ desc\\ =\\ \"transport:\\ http2Client\\.notifyError\\ got\\ notified\\ that\\ the\\ client\\ transport\\ was\\ broken\\ EOF\"",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Client keepalive pings are more frequent than the server's enforcement policy allows; the server sends GOAWAY and closes the connection.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端 keepalive ping 频率高于服务器强制策略允许的值；服务器发送 GOAWAY 并关闭连接。",
  "versions": [
    {
      "version": "google.golang.org/grpc v1.55+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Idle connections behind NAT/LB get silently dropped; subsequent RPCs fail with Unavailable.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Makes the problem worse — server enforces MinTime and closes the connection faster.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "kp := keepalive.ClientParameters{\n    Time:                5 * time.Minute,\n    Timeout:             20 * time.Second,\n    PermitWithoutStream: false,\n}\nconn, _ := grpc.NewClient(addr,\n    grpc.WithKeepaliveParams(kp),\n    grpc.WithTransportCredentials(insecure.NewCredentials()),\n)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "s := grpc.NewServer(grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{\n    MinTime:             10 * time.Second,\n    PermitWithoutStream: false,\n}))",
      "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-09-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}