Skip to content

[asr] Windows 双栈网上百炼听写因 IPv6 黑洞建连超时不出字 #1035

Description

@HKLHaoBin

现象

  • 触发条件:Windows 双栈网络(DNS 同时返回 AAAA 与 A),使用百炼 / DashScope 实时 ASR 听写。
  • 当前表现:麦克风有电平,会话停在 Starting,约 5 秒后报「连接超时(5000 ms)」,没有转写、历史也不落条。中途停录会放弃握手,看起来像没录上音。
  • 证据:本机 dashscope.aliyuncs.com 的 AAAA TCP 443 超时约 4s,A 记录 60–72ms 可通。tokio-tungstenite::connect_asyncgetaddrinfo 顺序先试 IPv6,5s 上限用尽,IPv4 轮不到。能连时握手约 250–400ms;修好后优先 IPv4,TCP 约 72ms、整段握手约 347ms,可正常出字。

影响

  • 受影响用户无法完成百炼听写(不出字、无历史)。
  • 停录后胶囊可能一直停在「识别中」,热键像失灵一样要等满超时。

建议接受标准

TODO / 不确定项

  • 其他云 ASR(Qwen / StepFun 等)仍用 connect_async,同样双栈环境 theoretically 会中招;本 issue 只覆盖百炼。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions