Hi all,
I run into a memory issue in NetworkExtension. I hope my NetworkExtension will filter all traffics (any hosts/ports, any protocol, any direction).
After running for 5 days, the NetworkExtension.framework keeps 20,000+ instances of NEFilterSocketFlow.
I don't believe a laptop will run 20,000 network connections at the same time, it seems like an issue from system frameworks.
I run the test on macOS 11.0.1 (20B29), it can also reproduced on macOS 11.1 (20C5048k).
I use the following snippet to reproduce the issue. To use this code, get a copy of "Filtering Network Traffic" sample code and replace the file.
FB8924681
Shay
I run into a memory issue in NetworkExtension. I hope my NetworkExtension will filter all traffics (any hosts/ports, any protocol, any direction).
After running for 5 days, the NetworkExtension.framework keeps 20,000+ instances of NEFilterSocketFlow.
I don't believe a laptop will run 20,000 network connections at the same time, it seems like an issue from system frameworks.
I run the test on macOS 11.0.1 (20B29), it can also reproduced on macOS 11.1 (20C5048k).
I use the following snippet to reproduce the issue. To use this code, get a copy of "Filtering Network Traffic" sample code and replace the file.
FB8924681
Shay