iOS caches the proxy settings

Hi,


I have been driving my head around but couldn't reach a proper conclusion. Please help me. I am using a proxy setting in Settings->Wi-Fi changing it to Manual and settinhs the proxy server and port. Now this port supports auhentication which is ok. So bascially i am using a proxy with authentication. When i try to make any HTTP request or sometimes as i have been observing iOS gives this log


2018-01-24 17:01:18.178604+0530 [300:40247] *** WARNING: CFMachPortSetInvalidationCallBack() called on a CFMachPort with a Mach port (0xe853) which does not have any send rights. This is not going to work. Callback function: 0x1ba7dcff

and presents me with proxy Authentication popup. Now my question is if i enter the right credentials where does iOS caches them and till how long?? Obviously i guess Apple doesn't think that the end user needs to know about the same hence i couldn't find any documentation regarding this but can someone tell me how long till this credential is cleared or iOS can ask me for this Authentication popup again??


Thanks in advance!! It would be very helpful!!

Any information on this is deeply appreciated.

The reason why I didn’t answer you earlier is that this question isn’t really about APIs. Rather, it’s about the user-visible behaviour of the system, which is kinda off-topic for DevForums and definitely off-topic for DTS. And while I understand that you’re writing code, it’s pretty easy to remove your code from the equation by casting your question in terms of Safari.

When i try to make any HTTP request or sometimes as i have been observing iOS gives this log …

That message doesn’t convey anything useful (it’s a likely indicator a bug in CFNetwork, but that bug does not cause serious problems).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Fair Enough!!

Can you please answer my last part wherein i am asking about the caching of the proxy credentials?? Thanks!!

The system’s proxy credentials are not directly visible to third-party apps (I believe that iOS stores them in the keychain, but with the keychain access group set such that third-party apps can’t access them).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
iOS caches the proxy settings
 
 
Q