-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
DNSCollector with AFPacket Sniffer Hangs on Stop #831
Comments
Thanks to report that! Could you share
|
Unfortunately, I cannot provide a network dump of the DNS traffic due to security concerns. Below is the configuration file:
I wouldn't say it hangs every time, but approximately 1 out of every 5 restarts, it seems to get stuck. This also appears to affect the Prometheus worker.
From there, it just hangs until systemd forcefully kills it. |
Just to kept you informed, it's reproduced in my side. |
A deadlock has been identified on stop between 2 goroutines. |
Any feedback will be appreciated |
I have tested the new DNSCollector version, and it now restarts normally without any hangs. Thanks! |
Describe the bug
We are currently using dnscollector version 1.0.0 with the afpacket sniffer. The issue arises when attempting to stop or restart the dnscollector service. The process does not shut down gracefully. Instead, it seems to hang indefinitely until the timeout is reached, at which point systemd forcefully kills the process. Could this be due to some of the system resources not being released?
INFO: 2024/10/07 14:23:32.077692 worker - [afpacket] afpacket sniffer - stop to listen...
This problem does not occur if there is no incoming traffic on the interface.
To Reproduce
Expected behavior
The service should stop or restart gracefully.
The text was updated successfully, but these errors were encountered: