New issue
Advanced search Search tips

Issue 611467 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

Cronet: Implement DnsConfigWatcher for iOS

Project Member Reported by kapishnikov@chromium.org, May 12 2016

Issue description

Implement DnsConfigWatcher for iOS or disable it all together. The current implementation of  DnsConfigWatcher.Watch() method always returns 'false'. This results in the error message "[ERROR:dns_config_service_posix.cc(213)] DNS config watch failed to start." 
 
Components: Internals>Network>DNS
There's two reasons (I think) we would want this - and not sure if we do.

a) If we end up wanting to ship async DNS in Cronet on iOS. I don't know if there's evidence that it's worth doing.

b) To detect network configuration changes and flush cached DNS results as well as sockets.
There is also network change watcher/notifier that invalidates the cache when the network changes, e.g. when the user moves from WiFi to Cellular. This should cover most of the cases. However, the user can go to the device "Settings", select "static" network configuration and manually change the DNS. This will probably not trigger the network change event. In that case, the DNS entries in our internal cache will expire in one minute.
kapishnikov@ can you triage?
Status: Available (was: Untriaged)
The DnsConfigWatcher for iOS is a nice feature to have but its absence is not critical. The network change watcher will invalidate the DNS caches whenever the network changes. The scenario that is not covered is when the user manually changes DNS address in the iOS device settings. In that case, an app may use the stale DNS cache entries for up to one minute.
Related internal bug: b/33844728
Owner: mge...@chromium.org

Comment 8 by mge...@chromium.org, Mar 22 2018

Owner: ----
FYI the benign error message was removed in r567963
Status: Archived (was: Available)

Sign in to add a comment