Skip to content

icmp ping 时的疑问 #18

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

Open
yaoxp opened this issue Jan 13, 2021 · 1 comment
Open

icmp ping 时的疑问 #18

yaoxp opened this issue Jan 13, 2021 · 1 comment

Comments

@yaoxp
Copy link

yaoxp commented Jan 13, 2021

  1. ping结束时对socket的操作
    只调用了shutdown,没有调用close
  2. 在ping时调用了两次settingUHostSocketAddressWithHost
    这样就会生成两次socket
  3. 域名解析做了两次
    settingUHostSocketAddressWithHost和convertDomainToIp
@me-boy
Copy link

me-boy commented Jul 27, 2022

确实有这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants