XPC error Connection invalid message issue

Hello

We are developing our own iOS Network Extensions-based VPN and it has an HTTP proxy in the VPN.

In addition, we also use PAC (Proxy auto-configuration) script to configure what kind of HTTP/HTTPS traffic should route to our proxy in the VPN.

However, we get this kind of message "Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery" randomly on iOS 15.5.

We have not been aware of any weird behavior of iOS based on the error message. We are afraid of this error message is caused by our VPN solution.

Is there any suggestion that should consider or follow to fix this error?

Replies

Is there any suggestion that should consider or follow to fix this error?

I'm not sure why you are receiving this error, but one route to consider here is that you could investigate building an Per-App NEAppProxyProvider instead of using a packet tunnel with a HTTP proxy. The proxy provider should provide you a path forward and you could get rid of running a side-by-side HTTP proxy. Note that NEAppProxyProvider is available on supervised devices only on iOS.