Envoy Gateway WebSocket 超时断连问题
现象
通过 Envoy Gateway 转发的 WebSocket 长连接,保持约 60 秒后被网关掐断,客户端表现为连接无响应/超时断开,服务端应用日志没有任何异常。
关键日志
Gateway 访问日志(已脱敏):
{
":authority": "ws.example.com",
"bytes_received": 0,
"bytes_sent": 15,
"downstream_local_address": "172.16.0.10:10080",
"downstream_remote_address": "203.0.113.7:11205",
"duration": 60000,
"method": "GET",
"protocol": "HTTP/1.1",
"response_code": 408,
"response_code_details": "request_overall_timeout",
"response_flags": "-",
"route_name": "httproute/demo/demo-app/rule/0/match/0/ws_example_com",
"start_time": "2026-08-11T06:08:34.187Z",
"upstream_cluster": "httproute/demo/demo-app/rule/0",
"upstream_host": null,
"user-agent": "Apifox/1.0.0 (https://apifox.com)",
"x-envoy-origin-path": "/v1/tts/ws"
}