We have a Content Filter implementation that caches NEFilterSocketFlow
instances seen from handleNewFlow()
, we do this so that we can update the flow verdict at a later time. For example we allow it to start with but later decide to block it.
However, when we do this we often see errors reported in Console like this when we call the update()
function.
Failed to find flow 7ABC4FC7-7031-4C5B-BA4B-F198B4DE344D to update its verdict
But the update()
method does not return anything, so we can't know that the flow is no longer valid.
Is there any way to verify a flow is still valid before trying to update the verdict?