First up, TN2277 hasn’t been updated in years so, while the gist of the technote is still correct, a number of details have drifted: Network framework generally doesn’t use BSD Sockets under the covers, but rather the user-space networking stack. Given that, the term socket resource reclaim no longer makes a lot of sense. These days I simply say that the connection or listener was defuncted [1]. [quote='802375021, veer_dutta07, /thread/802375, /profile/veer_dutta07'] 1- In what scenarios does the OS not reclaim the socket descriptor while the app is suspended … ? [/quote] This is an implementation detail, and the behaviour has changed over time. Historically iOS would delay the defunct until you screen lock the device. Hence the advice in the Testing Socket Reclaim section of TN2277. However, that changed years ago. Nowadays iOS will defunct things as soon as the app gets suspended. [quote='802375021, veer_dutta07, /thread/802375, /profile/veer_dutta07'] 2- When reclamation occurs, does the OS reclai
Topic:
App & System Services
SubTopic:
Networking
Tags: