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

30 天前
 superboss01
* 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 经常连接不上

不知道如何解决
406 次点击
所在节点    程序员
2 条回复
NewYear
30 天前
UA 是什么,有可能是 SSL 指纹和 UA 对不上。
superboss01
30 天前
@NewYear 现在又稳定没有这种情况发生了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1044827

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX