Skip to main content

Random initial NS_ERROR_CONNECTION_REFUSED but all OK after refresh?

Answered

Comments

10 comments

  • cPRex Jurassic Moderator

    Hey hey!  We don't have anything in our ticket system for "NS_ERROR_CONNECTION_REFUSED" so that would point me toward something outside of the server causing this.

    Have you confirmed this behavior on multiple systems?  That would be my first step.  If the issue does end up being isolated to one client's machine, it seems like a DNS issue or local resolver issue possibly.

    0
  • Benjamin D.

    You know what? You're right.  I skipped the obvious and I'm now beginning to think that it's something that's related to the network I'm using.  I have seen Firefox do a connection refused error on other websites (completely unrelated to our server, not even in the same data centre) then I refresh and it shows just fine within a second.  So I think something is up with the WiFi or the Internet here.  I will keep this open for a few days and do further testing.

    EDIT: No.  Ah, I don't know anymore, because I just did 5 tests very thoroughly following this exact procedure:

    1) Close all private windows/tabs.

    2) Open 1 private tab with the network inspector open on the side.

    3) Load a specific website and note the NS_ERROR_CONNECTION_REFUSED image paths.

    I've repeated this 5 times with 1 minute between each try.  The resources that don't load are almost exactly the same with 1 shifted row for one of the 3 tries.  This is way too perfect to be related to my WiFi network.  It's nowhere near random enough to be WiFi flukes.

    One thing to note is that all the resources always load perfectly well until the 38th or 39th file.  Then it randomly does not load files 39 through 73 and then it always loads all the way up to 152 files.  Files 39 through 73 are randomly not loading, so among my 5 tries, all JPEG files got to load and not load.

    You mention a DNS issue, which I believe is impossible in this scenario, since it loads most of the files.  If Firefox would not resolve the DNS, then it would not load anything (all the files are on the same server).

    0
  • cPRex Jurassic Moderator

    If you have a server where you can reliably repeat the behavior could you make a ticket?

    0
  • Benjamin D.

    You know me.  I can't do that.  But hopefully, this will ring a bell to other users who might remember having to deal with this.  If you want me to open a ticket, then surely you know where/what to look.  I'm root.  I appreciate your help.

    0
  • MinervaH

    It could be Firefox, have you tried other browsers? When searching for the error on Google, most of the results refer to Firefox:

    https://www.google.com/search?q=NS_ERROR_CONNECTION_REFUSED&tbs=qdr:y

     

    0
  • cPRex Jurassic Moderator

    Benjamin D.

    If you want me to open a ticket, then surely you know where/what to look.

    If I had an idea I'd just tell you, but I don't have anything in our ticket system about this particular error.

     

    0
  • Benjamin D.

    MinervaH Sometimes, humans don't see the forest for the trees... or whatever the proverb is.

    But I just tried with Safari and it does the exact same thing!

    Does anybody know a configuration variable somewhere in Apache that would cut the connection after X requests in a row or X request within a second? I'm sure it's security or configuration related.

    0
  • Benjamin D.

    I FOUND IT AND FIXED IT! You may close this thread.  The solution is to increase the "Max Keep-Alive Requests" value under Apache Configuration.

    0
  • cPRex Jurassic Moderator

    Did the Apache logs not show anything related to that while you tested?

    0
  • Benjamin D.

    All I saw were 404 and 200 lines, but nothing about Apache closing the connection abruptly on the browsers were 40-ish requests were made.  I'm not an Apache expert so maybe I looked in the wrong log files.

    0

Please sign in to leave a comment.