-
Notifications
You must be signed in to change notification settings - Fork 26
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
Tests hang forever after interface idle for some time #5
Comments
I'm not sure if it's the time. When I run the tests repeatedly, they lock up sometimes. I suspect there's some race condition or maybe it doesn't perform well if packets are lost on the interface 🤷. Anyway, this crate really is not at the very top of my priority list, it might take some time before I get to this. So if you could have a look at what might be happening (maybe |
Ok (sorry for late reply)! Same for me, might take a while until I need the functionality from this crate. |
Quick update. Tried this again, but with Wireshark (I don't recall if I had Wireshark running when I reported this). I haven't been able to have the tests fail after allowing all traffic in the Could it be the same issue for you? Although I'm pretty sure I've seen tests fail without locking up... will poke it some more. |
I didn't find the time to look at it more since then, but I'm pretty confident nothing manipulates my firewall and the ports should be the same each time. |
I have using the TAP parts of this over the weekend and captured >1 000 000 packets without problems. |
I'll keep this open for now. If my gut feeling is right, it's a problem in the test, not in the actual library code. |
I have only done this on a single computer yet so I'm not sure if it's reproducible on other networks/PCs/OSes, etc.
On Ubuntu 19.10.
Commit is e150911
Reproducable by:
The last line will never be echoed, as the second test will hang forever.
First test finishes instantly.
The text was updated successfully, but these errors were encountered: