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

关闭udp链接 #50

Merged
merged 1 commit into from
May 29, 2024
Merged

关闭udp链接 #50

merged 1 commit into from
May 29, 2024

Conversation

Liu-WeiHu
Copy link

我在做测试trace-route的时候检测到一个err,显示端口用尽,复查了下代码感觉是这里出现了问题,由于我用的是udp协议,所以就修改了这里。

@tsosunchia
Copy link
Member

我在做测试trace-route的时候检测到一个err,显示端口用尽,复查了下代码感觉是这里出现了问题,由于我用的是udp协议,所以就修改了这里。

可否更详细描述下现象以及如何复现,比如添加一些截图

@Liu-WeiHu
Copy link
Author

比如我在使用 for + 协程 去 调用 trace/Traceroute 的方法时,执行到里面 send(ttl) 时,此刻建立 udp 链接 进行读写操作, 流程走完后, udp链接没有关闭, 由于是循环执行,一直有新的 任务去调用 trace/Traceroute 方法, 源源不断的建立 udp 链接,导致端口使用殆尽。 附上 error 信息:listen udp :0: bind: address already in use

@tsosunchia tsosunchia merged commit 85b01eb into nxtrace:main May 29, 2024
35 of 36 checks passed
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

Successfully merging this pull request may close these issues.

2 participants