• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Yasuke
V2EX  ›  程序员

websockt timeout

  •  
  •   Yasuke · Aug 5, 2024 · 2475 views
    This topic created in 824 days ago, the information mentioned may be changed or developed.
    项目链接: https://github.com/kramcat/CharacterAI
    这个项目请求的 api 因为是境外的,所以我用 clash 开了全局代理,然后 set http_proxy 和 https_proxy http://127.0.0.1:7890 ,post 请求可以正常发出,但 websocket 一直 timeout,请问各位有遇到过类似的情景吗?
    5 replies  •  2024-08-05 14:03:50 +08:00
    andyC
    andyC
    Aug 5, 2024
    1
    socket_proxy
    Yasuke
    Yasuke
    OP
    Aug 5, 2024
    2
    @andyC 也是转发到 7890 吗?我的 clash 的是 mixport 7890,刚刚试了一下# import socks
    # socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 7890) 没用
    cheakchen
    cheakchen
    Aug 5, 2024
    3
    1 看下 clash 是否屏蔽了 websockt 功能
    2 每个服务端实现心跳功能
    3 服务端要实现广播消费
    HannibaI
    HannibaI
    Aug 5, 2024
    4
    我记得去年还是前年,有个版本的 macOS 和 Clash ,不能正常代理 websocket
    supuwoerc
    supuwoerc
    Aug 5, 2024
    5
    很多梯子的节点是不支持 websockt 的,要先检查检查
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2180 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 03:05 · PVG 11:05 · LAX 19:05 · JFK 22:05
    ♥ Do have faith in what you're doing.