怪事:香港服务器 http reset

2020-09-15 23:59:04 +08:00
 bin456789

vps 作为 http 客户端

访问某些网页(例如 google, qq, 1.1.1.1 )会出现 Connection reset

访问某些网页(例如 baidu )却正常

访问 https 网页,全都正常

求原因

具体:

http 访问 baidu,成功率 100%

curl -v http://www.baidu.com/
* About to connect() to www.baidu.com port 80 (#0)
*   Trying 103.235.46.39...
* Connected to www.baidu.com (103.235.46.39) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: www.baidu.com
> Accept: */*
>
< HTTP/1.1 200 OK

http 访问 google/qq/ 1.1.1.1,10 次大约有 1 次正常,其余 9 次 Connection reset by peer

curl -v http://1.1.1.1/
* About to connect() to 1.1.1.1 port 80 (#0)
*   Trying 1.1.1.1...
* Connected to 1.1.1.1 (1.1.1.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 1.1.1.1
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

https 访问,全都正常

curl -v https://1.1.1.1/
* About to connect() to 1.1.1.1 port 443 (#0)
*   Trying 1.1.1.1...
* Connected to 1.1.1.1 (1.1.1.1) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* 	subject: CN=cloudflare-dns.com,O="Cloudflare, Inc.",L=San Francisco,ST=California,C=US
* 	start date: Jan 28 00:00:00 2019 GMT
* 	expire date: Feb 01 12:00:00 2021 GMT
* 	common name: cloudflare-dns.com
* 	issuer: CN=DigiCert ECC Secure Server CA,O=DigiCert Inc,C=US
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 1.1.1.1
> Accept: */*
>
< HTTP/1.1 200 OK
586 次点击
所在节点    问与答
0 条回复

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

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

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

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

© 2021 V2EX