arping icon indicating copy to clipboard operation
arping copied to clipboard

Added a cancellation channel to interrupt a goroutine

Open RomanAvdeenko opened this issue 3 years ago • 0 comments

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.

RomanAvdeenko avatar Nov 16 '21 09:11 RomanAvdeenko