dmachard / go-dnscollector

Ingesting, pipelining, and enhancing your DNS logs with usage indicators, security analysis, and additional metadata.
MIT License
205 stars 45 forks source link

DNSCollector with AFPacket Sniffer Hangs on Stop #831

Open BarboraAni opened 18 hours ago

BarboraAni commented 18 hours ago

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.

dmachard commented 12 hours ago

Thanks to report that! DNScollector stucks each time ? I tried to reproduced in my side but without success.

Could you share