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

Added a cancellation channel to interrupt a goroutine #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RomanAvdeenko
Copy link

@RomanAvdeenko RomanAvdeenko commented Nov 16, 2021

I had to check with arp request 5 networks 192.x.x.x/ 23 and 2 networks 192.x.x.x/ 22.
I did it sequentially in a loop, and I ran into a problem that sometimes func PingOverIface () hangs without returning a result, as if somewhere to lock a goroutine.
I added a cancellation channel and that solved my problem.

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.

1 participant