responseHandler of sendProviderMessage of NETunnelProviderSession is being called implicitly/prematurely

Hi, For one our requirement sendProviderMessage is been used to send some event/message from app to system extension, In my requirement, responseHandler in system extension would get explicitly called approximately after 1 min due to some async download file task.

But observing some strange behavior that responseHandler is getting called implicitly after ~20-30 seconds even before the code hit the place where its called explicitly. And that is the only place I'm calling responseHandler.

Can somebody please help about this strange behavior, Is there any implicit timeout interval associated with the responseHandler.

Thanks & Regards, Preethi

Answered by DTS Engineer in 817570022

If you’re packaging a NE provider as a system extension then you have much better options for IPC. Specifically, your sysex can advertise a named XPC endpoint using NEMachServiceName.

IMO it’s best to avoid the very limited providing messaging infrastructure and use XPC instead.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

If you’re packaging a NE provider as a system extension then you have much better options for IPC. Specifically, your sysex can advertise a named XPC endpoint using NEMachServiceName.

IMO it’s best to avoid the very limited providing messaging infrastructure and use XPC instead.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

responseHandler of sendProviderMessage of NETunnelProviderSession is being called implicitly/prematurely
 
 
Q