Open fdgonthier opened 2 years ago
This loop is going to run forever if all the ports happen to be allocated. It seems to be unlikely to happen but I swear it happening to us right now. None of the ports allocated ever end up being used in a successful flow so I presume that's why we do not run out of memory before running out of ports.
The bug is double. Something does not free up ports, and the kernel module do not react properly to running out of ports.
This looks very similar to the problem I observed with CIDM. I'll send the patch about this as soon as I can.