Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Clever Code
  4. Weird delay in Firefox with Ajax request

Weird delay in Firefox with Ajax request

Scheduled Pinned Locked Moved Clever Code
phpvisual-studiocomquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leppie
    wrote on last edited by
    #1

    This one stumped me. For some obscure reason I was get a 1 second delay on all Ajax requests to my local PC. IT was so consistent (1.02s almost everytime) I gathered something was not right. Google failed me, MS Ajax forums failed me. So on a hunch (not really becos DNS always causes delays) I thought it might be DNS related. Entering 127.0.0.1 made Firefox fly! So DNS was causing it, but what? So I headed off to my hosts file, and notice 2 entries for localhost, 1 for IPv4 and 1 for IPv6. Simply uncommenting the entry for IPv6, allowed Firefox not to try resolve the IPv6 address, and it was flying again. I havent investigated why the above reason causes a delay, but I dont really care beyond this point.

    xacc.ide - now with IronScheme support
    IronScheme - 1.0 alpha 1 out now

    M R 2 Replies Last reply
    0
    • L leppie

      This one stumped me. For some obscure reason I was get a 1 second delay on all Ajax requests to my local PC. IT was so consistent (1.02s almost everytime) I gathered something was not right. Google failed me, MS Ajax forums failed me. So on a hunch (not really becos DNS always causes delays) I thought it might be DNS related. Entering 127.0.0.1 made Firefox fly! So DNS was causing it, but what? So I headed off to my hosts file, and notice 2 entries for localhost, 1 for IPv4 and 1 for IPv6. Simply uncommenting the entry for IPv6, allowed Firefox not to try resolve the IPv6 address, and it was flying again. I havent investigated why the above reason causes a delay, but I dont really care beyond this point.

      xacc.ide - now with IronScheme support
      IronScheme - 1.0 alpha 1 out now

      M Offline
      M Offline
      Michael P Scherer
      wrote on last edited by
      #2

      i'm guessing that 1 second is the time it takes to time out its dns request

      SoCoder - CAT Program

      L 1 Reply Last reply
      0
      • M Michael P Scherer

        i'm guessing that 1 second is the time it takes to time out its dns request

        SoCoder - CAT Program

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Indeed.

        xacc.ide - now with IronScheme support
        IronScheme - 1.0 alpha 1 out now

        1 Reply Last reply
        0
        • L leppie

          This one stumped me. For some obscure reason I was get a 1 second delay on all Ajax requests to my local PC. IT was so consistent (1.02s almost everytime) I gathered something was not right. Google failed me, MS Ajax forums failed me. So on a hunch (not really becos DNS always causes delays) I thought it might be DNS related. Entering 127.0.0.1 made Firefox fly! So DNS was causing it, but what? So I headed off to my hosts file, and notice 2 entries for localhost, 1 for IPv4 and 1 for IPv6. Simply uncommenting the entry for IPv6, allowed Firefox not to try resolve the IPv6 address, and it was flying again. I havent investigated why the above reason causes a delay, but I dont really care beyond this point.

          xacc.ide - now with IronScheme support
          IronScheme - 1.0 alpha 1 out now

          R Offline
          R Offline
          Russell Jones
          wrote on last edited by
          #4

          My old router at home was useless at forwarding ipv6 but did it in such a way that the connections didn't time out properly and it caused havok with my networking for a while. if you type about:config into the address bar and filter on network.dns.disableIPv6 you can stop firefox from using IPV6 Russ

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups