V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Yasuke
V2EX  ›  程序员

websockt timeout

  •  
  •   Yasuke · Aug 5, 2024 · 1933 views
    This topic created in 632 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
        1
    andyC  
       Aug 5, 2024
    socket_proxy
    Yasuke
        2
    Yasuke  
    OP
       Aug 5, 2024
    @andyC 也是转发到 7890 吗?我的 clash 的是 mixport 7890,刚刚试了一下# import socks
    # socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 7890) 没用
    cheakchen
        3
    cheakchen  
       Aug 5, 2024
    1 看下 clash 是否屏蔽了 websockt 功能
    2 每个服务端实现心跳功能
    3 服务端要实现广播消费
    HannibaI
        4
    HannibaI  
       Aug 5, 2024
    我记得去年还是前年,有个版本的 macOS 和 Clash ,不能正常代理 websocket
    supuwoerc
        5
    supuwoerc  
       Aug 5, 2024
    很多梯子的节点是不支持 websockt 的,要先检查检查
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 04:40 · PVG 12:40 · LAX 21:40 · JFK 00:40
    ♥ Do have faith in what you're doing.