Skip to content

httping无法正常工作 #559

@cnthunder

Description

@cnthunder

问题描述

httping几乎99%的失败率,起初我怀疑是因为被cf封了导致的,但是哪怕用-n 1参数都没用。
然后我尝试了对单个IP进行测试,依然无法正常测速。

root@OpenWrt:/home# cdnspeedtest -ip 190.93.245.22 -httping
# XIU2/CloudflareSpeedTest v2.2.5 

开始延迟测速(模式:HTTP, 端口:443, 范围:0 ~ 9999 ms, 丢包:1.00)
1 / 1 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 可用: 0  

[信息] 延迟测速结果 IP 数量为 0,跳过下载测速。

[信息] 完整测速结果 IP 数量为 0,跳过输出结果。

但是我直接httping是可以取到延迟的

root@OpenWrt:/home# httping 190.93.245.22 -c 5 -i 0.1 -t 0.5 -s
PING 190.93.245.22:80 (/):
connected to 190.93.245.22:80 (395 bytes), seq=0 time=418.07 ms 403 Forbidden
connected to 190.93.245.22:80 (395 bytes), seq=1 time=109.23 ms 403 Forbidden
connected to 190.93.245.22:80 (395 bytes), seq=2 time=443.42 ms 403 Forbidden
connected to 190.93.245.22:80 (395 bytes), seq=3 time=360.30 ms 403 Forbidden
connected to 190.93.245.22:80 (395 bytes), seq=4 time=419.45 ms 403 Forbidden
--- http://190.93.245.22/ ping statistics ---
5 connects, 0 ok, 100.00% failed, time 2254ms

带-httping-code 403仍然没用

root@OpenWrt:/home# cdnspeedtest -ip 190.93.245.22 -httping -httping-code 403
# XIU2/CloudflareSpeedTest v2.2.5 

开始延迟测速(模式:HTTP, 端口:443, 范围:0 ~ 9999 ms, 丢包:1.00)
1 / 1 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 可用: 0  

[信息] 延迟测速结果 IP 数量为 0,跳过下载测速。

[信息] 完整测速结果 IP 数量为 0,跳过输出结果。

指定url也没用

root@OpenWrt:/home# cdnspeedtest -ip 190.93.245.22 -httping -url https://www.gstatic.com/generate_204
# XIU2/CloudflareSpeedTest v2.2.5 

开始延迟测速(模式:HTTP, 端口:443, 范围:0 ~ 9999 ms, 丢包:1.00)
1 / 1 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 可用: 0  

[信息] 延迟测速结果 IP 数量为 0,跳过下载测速。

[信息] 完整测速结果 IP 数量为 0,跳过输出结果。
root@OpenWrt:/home# 

软件版本

XIU2/CloudflareSpeedTest v2.2.5

附加截图

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    反馈问题某些功能失效 或 没有达到预期

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions