I'm playing around wth a custom VPN protocol.
I've created an App with an NEPacketTunnelManager and NEPacketTunnelProvider, and I'm able to capture packets using the extension.
I'm now trying to pull in some code (gomobile, as an experiment) to actually do the work for my VPN.
Unfortunately, this quickly crosses the 15MB enforced limit for the extension and my extension gets killed by jetsam.
15MB seems really quite limited.
Is this limit really applied to the extension and any libraries used? Is there a way to get around this? I don't mean reconfiguring the limit, but rather structuring my App such that the meat of the VPN logic isn't what is checked for size in the extension.
I have seen lots of examples for NEPacketTunnelProvider (i.e., Apple's SimpleTunnel example), but not much in mitigating around the memory limits.