Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果无法连接上 Data Provider 它既不会超时也不会显示 Network Error #268

Open
grdll opened this issue Oct 28, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@grdll
Copy link

grdll commented Oct 28, 2024

你看到的异常现象是什么?

  1. 如果 NextTrace 无法连接上 Data Provider, NextTrace 既不会超时不会显示 Network Error
    nexttrace 1.1.1.1

  2. 如果 -d disable-geoip 的话,它反而会显示 Network Error
    nexttrace -d disable-geoip 1.1.1.1

你期待看到的正常表现是怎样的?

  1. Data Provider 设置默认 4 秒钟超时,或以单位,提供类似 --data-provider-timeout 的选项

  2. -d disable-geoip 不应该显示 Network Error 这种误导性的提示,应该直接不显示任何文字 (既然命令行已经禁用了,就算显示 Data Provider Disabled 这种提示也是 多余 和 浪费阅读时间的)

@tsosunchia tsosunchia added enhancement New feature or request help wanted Extra attention is needed labels Oct 28, 2024
@tsosunchia
Copy link
Member

Data Provider 设置默认 4 秒钟超时,或以秒为单位,提供类似 --data-provider-timeout 的选项

关于此问题,您可以使用--timeout参数

timeout := parser.Int("", "timeout", &argparse.Options{Default: 1000, Help: "The number of [milliseconds] to keep probe sockets open before giving up on the connection."})

@tsosunchia
Copy link
Member

tsosunchia commented Nov 4, 2024

-d disable-geoip 不应该显示 Network Error 这种误导性的提示,应该直接不显示任何文字 (既然命令行已经禁用了,就算显示 Data Provider Disabled 这种提示也是 多余 和 浪费阅读时间的)

关于此问题,已经纳入TODO,如有进展也将同步此issue

目前您可以暂时使用:
nexttrace -d disable-geoip 1.1.1.1 --json -C
nexttrace -d disable-geoip 1.1.1.1 --raw -C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants