Uh oh!
There was an error while loading. Please reload this page.
fix(asr): 百炼 WebSocket 优先走 IPv4,避开本机 IPv6 黑洞 - #1036
Open
HKLHaoBin wants to merge 2 commits into
Open
Conversation
dashscope 的 AAAA 在部分 Windows 双栈网上 TCP 443 会挂死,connect_async 先试 IPv6 会卡满 5 秒超时,听写进不了 Listening。 Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
Fixes#1035。
Windows 双栈网上百炼实时 ASR 会先连不通的 IPv6,卡满 5 秒超时,听写进不了 Listening、不出字、历史也不落。本 PR 只改百炼 WebSocket 建连:解析后优先走 IPv4。
修复 / 新增 / 改进
openless-core百炼客户端不再直接connect_async;先lookup_host,IPv4 排前,单地址 TCP 上限 1.5s,再client_async_tls。order_connect_addrs_puts_ipv4_first单测。兼容
测试计划
cargo test --manifest-path openless-all/app/crates/openless-core/Cargo.toml order_connect_addrs_puts_ipv4_firstCIworkflow_dispatch(run 34102029861)Release Tauri (cross-platform)workflow_dispatch(run 34102034124)Bailian ASR connected,转写并粘贴成功。证据路径:
openless-all/app/crates/openless-core/src/asr/bailian.rsMade with Cursor