Re: Problem: XP + SP2 + IE = Slow first connection to any new site.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Browne (meat_at_hotmail.com)
Date: 10/17/04


Date: Sun, 17 Oct 2004 16:45:34 -0500

Gentelmen,

I experienced the same problem, similarly failed to resolve it with the
above steps.

One additional symptom for me was that the problem was in name resolution.

If I set my home page to
  http://64.233.171.104/
Which is www.google.com, then IE launched instantly and displayed the page.
Set to
  http://www.google.com
The page displayed after a 7-10 second delay.

Also from a commandline
   ping www.google.com
exhibited the same delay.

So thinking it might be a DNS problem, I deconfigured the DNS servers and
made sure WINS was disabled on my network adapter. Then I put a single
entry in my hosts file: www.google.com. I expected the problem to go away
since this should force name resolution only using my hosts file (and then
broadcast). Anyway hit the hosts file, find www.google.com, and hit the
site, no problem.

Well the problem didn't go away.

So then I fired up Intel VTune, an excelent code profiler which allows,
among other things, profiling of code even when you don't have the source.
It will show a call graph analysis for any process you want. A call graph
analysis of ping.exe should show what function was being called during the
7-10 second delay.

Here's what I found: the delay was in the stack

getaddrinfo ( ws2_32.dll )
 GetAddrInfoW ( ws2_32.dll )
  WSALookupServiceNextW ( ws2_32.dll )
   WSAttemptAutodialName (rasadhlp.dll)
    AcsHlpAttemptConnection (rasadhlp.dll)

The call to AcsHlpAttemptConnection took 7 seconds to complete.

Now getaddrinfo is the normal Winsock function for resolving a host name,
but I'm not sure why it needs to invoke the Dial-Up networking junk,
especially since I don't have a modem, and have only one network adapter.

Anyway that's still a bit of a mystery and probably a bug, but here's the
fix:

Go to Control Panel\Network Connections\ Advanced (menu) \ Dial-Up
Preferences \
Under Enable autodial by location, uncheck all the locations.

Hope this helps,

David



Relevant Pages

  • Re: Problem: XP + SP2 + IE = Slow first connection to any new site.
    ... David Browne wrote: ... > The page displayed after a 7-10 second delay. ... > made sure WINS was disabled on my network adapter. ... > entry in my hosts file: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: CEICW after loading third party certificate
    ... Glad to hear the part about the hosts file. ... ISA, unlike most commodity ... In an effort to resolve the issue you mention below ... The name of the server certificate attached to a Web publishing rule does ...
    (microsoft.public.windows.server.sbs)
  • Re: Unable to resolve hostname (winsock problem?)
    ... > The only thing in my hosts file is localhost. ... > <hostname> to force DNS hostname resolution and this morning, ... the problem occurs when I don't try to resolve hostnames for a while. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: RRAS clients and DNS registration
    ... but it turns out I only had to add one entry to my Hosts file to ... I'm still at a loss why a Win2K Pro client couldn't resolve a single host ... name through the server's DNS. ... What's a PGP Key? ...
    (microsoft.public.win2000.dns)
  • Re: Name resolution Hacked
    ... Windows not only uses the hosts file for name resolution, ... Check to see if there is an entry in that file. ...
    (microsoft.public.win2000.security)