Any way to avoid app proxy reconnect when any connection broken

Hi there,

I am using AppProxyProvider that generates a app proxy. It captures tcp, udp flows and connect to remote endpoints by createTCPConnection() createUDPSession(). In most cases it just works well.

There is one thing quite annoying: while browsing with a web browser, sometimes the app proxy can restart itself, seems related to some connection that broken.

Is there any suggestion to avoid such app proxy reconnect itself even if any underlying connection is broken?

Thanks in advance.

while browsing with a web browser, sometimes the app proxy can restart itself, seems related to some connection that broken.

When I encounter the Proxy Provider restarting itself it is usually due to a crash in the Network Extension. Are you able to see the Network Extension restarting? You could troubleshoot this be creating a constructor and logging out if the system is invoking the constructor on restart. Something like:

Code Block swift
private let log: OSLog
static let log = OSLog(subsystem: "...", category: "provider")
override init() {
self.log = Self.log
os_log(.debug, log: self.log, "init")
super.init()
}




Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Thanks for the suggestion. Will trace down any crash happened as you pointed out.
Any way to avoid app proxy reconnect when any connection broken
 
 
Q