V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
superboss01
V2EX  ›  程序员

curl 进行 https 时不时的就连接不到 curl: (35) Recv failure: Connection reset by peer

  •  
  •   superboss01 · 27 天前 · 373 次点击
    * Host xxxxxx.com:443 was resolved.
    * IPv6: 2606:4700:3032::ac43:baf6, 2606:4700:3030::6815:13a2
    * IPv4: 172.67.186.246, 104.21.19.162
    * Trying 172.67.186.246:443...
    * Trying [2606:4700:3032::ac43:baf6]:443...
    * Immediate connect fail for 2606:4700:3032::ac43:baf6: Network is unreachable
    * Trying [2606:4700:3030::6815:13a2]:443...
    * Immediate connect fail for 2606:4700:3030::6815:13a2: Network is unreachable
    * Connected to xxx.com (172.67.186.26) port 443
    * ALPN: curl offers h2,http/1.1
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    * CAfile: /etc/ssl/certs/ca-certificates.crt
    * CApath: /etc/ssl/certs
    * Recv failure: Connection reset by peer
    * OpenSSL SSL_connect: Connection reset by peer in connection to p.qs-pays.com:443
    * Closing connection
    curl: (35) Recv failure: Connection reset by peer

    经常就重置了,不知道如何解决,2 台服务器 A 和 B ,前置 cloudflare 进行的 ssl(证书也是 cf 的,完全模式)
    ubuntu 6.8.0-31-generic (24 还是 20 版本) ,php7.4 nginx php-fpm

    现在就是 a 请求 b 经常连接不上

    不知道如何解决
    2 条回复
    NewYear
        1
    NewYear  
       26 天前
    UA 是什么,有可能是 SSL 指纹和 UA 对不上。
    superboss01
        2
    superboss01  
    OP
       26 天前
    @NewYear 现在又稳定没有这种情况发生了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2989 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:38 · PVG 20:38 · LAX 05:38 · JFK 08:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.