Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: docs/proxy_auto_config.md

Issue 1309473002: WIP: Migrate Wiki content over to src/docs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/profiling_content_shell_on_android.md ('k') | docs/retrieving_code_analysis_warnings.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Introduction
2 Most systems support manually configuring a proxy for web access, but this is cu mbersome and kind of techical, so Chrome also supports [WPAD](http://en.wikipedi a.org/wiki/Web_Proxy_Autodiscovery_Protocol) for proxy configuration (enabled if "automatically detect proxy settings" is enabled on Windows).
3
4 # Problem
5 Currently, WPAD is pretty slow when we're starting up Chrome - we have to query the local network for WPAD servers using DNS (and maybe NetBIOS), and we wait al l the way until the resolver timeout before we try sending any HTTP requests if there's no WPAD server. This is a really crappy user experience, since the brows er's basically unuseable for a couple of seconds after startup if autoconfig is turned on and there's no WPAD server.
6
7 # Solution
8 There's a couple of simplifying assumptions we make:
9
10 * If there is a WPAD server, it is on the same network as us, and hence likely to respond to lookups far more quickly than a random internet DNS server would.
11 * If we get a lookup success for WPAD, there's overwhelmingly likely to be a l ive WPAD server. The WPAD script could also be large (!?) whereas the DNS respon se is necessarily small.
12
13 Therefore our proposed solution is that when we're trying to do WPAD resolution, we fail very fast if the WPAD server doesn't immediately respond to a lookup (l ike, 100ms or less). If there's no WPAD server, we'll time the lookup out in 100 ms and get ourselves out of the critical path much faster. We won't time out loo kups for explicitly-configured WPAD servers (i.e., custom PAC script URLs) in th is fashion; those will still use the normal DNS timeout.
14
15 **This could have bad effects on networks with slow DNS or WPAD servers**, so we should be careful to allow users to turn this off, and we should keep statistic s as to how often lookups succeed after the timeout.
16
17 So here's what our WPAD lookup policy looks like **currently** in practice (assu ming WPAD is enabled throughout):
18
19 * If there's no WPAD server on the network, we try to do a lookup for WPAD, ti me out after two seconds, and disable WPAD. Until this time, no requests can pro ceed.
20 * If there's a WPAD server and our lookup for it answers in under two seconds, we use that WPAD server (fetch and execute its script) and proceed with request s.
21 * If there's a WPAD server and our lookup for it answers after two seconds, we time out and do not use it (ever) until a network change triggers a WPAD reconf iguration.
22
23 Here's what the **proposed** lookup policy looks like in practice:
24
25 * If there's no WPAD server on the network, we try to do a lookup for WPAD, ti me out after 100ms, and disable WPAD.
26 * If there's a WPAD server and our lookup for it answers in under 100ms or it' s explicitly configured (via a custom PAC URL), we use that WPAD server.
27 * If there's a WPAD server and our lookup for it answers after 100ms, we time out and do not use it until a network change.
OLDNEW
« no previous file with comments | « docs/profiling_content_shell_on_android.md ('k') | docs/retrieving_code_analysis_warnings.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698