Skip to content

Added a cancellation channel to interrupt a goroutine#11

Open
RomanAvdeenko wants to merge 1 commit intoj-keck:masterfrom
RomanAvdeenko:master
Open

Added a cancellation channel to interrupt a goroutine#11
RomanAvdeenko wants to merge 1 commit intoj-keck:masterfrom
RomanAvdeenko:master

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