connection to "localhost" fails with IPv4-only web server if machine has IPv4+IPv6
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- networking
调研方向
在 0.0.0.0:12345 上使用仅 IPv4 的 Envoy listener 重现该故障,然后在双栈机器上比较加载 http://localhost:12345 与 http://127.0.0.1:12345 的结果。该 issue 未指定文件或测试;跟踪 Nighthawk 的 localhost 解析和连接路径,并在 localhost 能够可靠地访问 IPv4 listener 时认为工作完成。
由索引模型根据 Issue 内容生成。
描述
- Start an Envoy load balancer listening on 0.0.0.0:12345.
- Try to run a load test to http://localhost:12345.
You may get connection failures on some machines.
Sending the load to http://127.0.0.1:12345 does work.
You may have to be using a machine that supports both IPv4 and IPv6
Tentative theory:
- Because IPv6 is available, Nighthawk resolves localhost to the IPv6 address ::1.
- The Envoy is explicitly listening only on IPv4 (0.0.0.0) (if I understand correctly).
- Connecting to ::1 on port 12345 does not reach the Envoy, which is only listening on all IPv4 addresses.
That is, the issue could be with how Nighthawk resolves "localhost" on a dual IPv4/IPv6 machine.
- 主要语言
- C++
- 星标
- 420
- 派生
- 99
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
envoyproxy/nighthawk 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
envoyproxy/nighthawk#1606 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
envoyproxy/nighthawk#1605 ·
维护者通常 3 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
envoyproxy/nighthawk#1609 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
envoyproxy/nighthawk#1608 ·
维护者通常 3 天内回复
-
--stats-sinks aborts at startup: no stats sink implementation is registered可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
envoyproxy/nighthawk#1607 ·
维护者通常 3 天内回复
查看 envoyproxy/nighthawk 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
new issue
难度 2/5 1-3 小时 新手友好度 72/100
llvm/llvm-project#240065 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 2 天内回复
-
ai_p2
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/ClickHouse#130006 ·
维护者通常 1 天内回复
-
RebuildGeom rebuilds vertex buffers needlessly可能已有人在做 @trish-sl 今天认领。 未关闭triage
难度 2/5 1-3 小时 新手友好度 76/100
secondlife/viewer#6653 ·
维护者通常 1 天内回复