After the device wake ups, NEFilterDataProvider causes internet access issue intermittently

We have a NEFilterDataProvider extension that intercepts all TCP and UDP IPv4/6 traffic. At times just after wakeup from sleep, it causes internet access issues, such as showing "This site can't be reached" when opening websites.

The traffic is not being dropped by the extension.

According to the logs, the connection is being closed after approximately 4 minutes.

During the issue, the flow logs are as follows:

  1. Flow <id>515129771 is connecting
  2. New flow: NEFlow type = stream, app = com.google.Chrome.helper...
  3. Detaching, ref count = 2 (logged after ~4 minutes)
  4. Sending close, how = 2
  5. Removing from group 2, ref count = 2
  6. Destroying, app tx 0, tunnel tx 0, tunnel rx 0
  7. Closing reads, not closed by plugin
  8. Closing writes, not sending close

Any suggestions on the possible cause and how to further debug it?

After the device wake ups, NEFilterDataProvider causes internet access issue intermittently
 
 
Q