opensnitch/daemon/netfilter
themighty1 6f6e91ac41 wait for success when sending packet to chan, don't error out after first failed attempt.
When testing this patch under a heavy load of 300 new connections per second running for 12 hours, I saw a few timeouts.
This means that there are legitimate cases when sending the packet to the channel will not go through
no matter how long we wait.
However, compared to the old behavior, the amount of dropped packets decreased by a factor of 100x.

The value of timeout is chosen to be 1 millisecond, because it feels reasonable that if after so long the packet did
not go through, it is not due to a congested channel but due to some other error which will not go away even if we wait longer.
2021-02-19 09:01:01 +03:00
..
packet.go fixed errors when IPv6 is not enabled in the system 2020-11-26 16:25:48 +01:00
queue.c misc: small fix or general refactoring i did not bother commenting 2018-04-10 12:52:01 +02:00
queue.go wait for success when sending packet to chan, don't error out after first failed attempt. 2021-02-19 09:01:01 +03:00
queue.h close nfqueue descriptors gracefully 2020-07-17 01:29:58 +02:00