curl 进行 https 时不时的就连接不到 curl: (35) Recv failure: Connection reset by peer - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
superboss01
V2EX    程序员

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

  •  
  •   superboss01 2024-05-28 20:08:41 +08:00 1389 次点击
    这是一个创建于 550 天前的主题,其中的信息可能已经有所发展或是发生改变。
    * 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 经常连接不上

    不知道如何解决
    NewYear
        1
    NewYear  
       2024-05-29 00:29:51 +08:00
    UA 是什么,有可能是 SSL 指纹和 UA 对不上。
    superboss01
        2
    superboss01  
    OP
       2024-05-29 12:34:44 +08:00
    @NewYear 现在又稳定没有这种情况发生了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2640 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 14:28 PVG 22:28 LAX 06:28 JFK 09:28
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86