4

Description of issue

We have a web server that is serving static assets. We are experiencing a problem where after you browse around some of the http requests get stuck in the "pending" state. In the chrome inspector the response headers do come back, but the requests don't time out and they look like they are downloading. In the timeline view the "Waiting (ttfb)" is the last item filled out (400ms for example), and then there is a note "CAUTION: request is not finished yet!"

This issue seems limited to chrome, and when the site is being run https. We can't reproduce on safari, ff, ie, and we can't reproduce if https is off.

Repro. steps taken

  1. open chrome incognito
  2. open inspector tools > net tab
  3. navigate to site
  4. usually the first page and all of it's requests finish
  5. browse to another page
  6. unexpected behavior: parts of the page don't load; xhr requests for .html files, and jpg images typically. When inspected in chrome's net tab they say "pending"

Odd note:

  1. after following the steps above, if you open the "pending" request in a new tab the tab "spins"
  2. if you close the first tab, the second tab with the "pending" url resolves, this lead us to look into keep alives and timeouts, but to no avail.
  3. This full issue can sometimes present itself on the very first request as well (document)

Environment notes:

  • frontend is angularjs, accessed via chrome other browsers don't seem to have this issue
  • server is run https, wildcard cert ( *.domain.com )
  • nginx version 1.9.3

    # some variables we've tweaked
    worker_processes 4;
    worker_connections 4000;
    keepalive_timeout 15;
    client_body_timeout 12;
    gzip on
    
  • nginx logs don't complain about anything

  • the cpu / ram never get anywhere close to maxxing out when there is load on the server
  • the response headers include; etag, gzip, content-type, date, last-modified, server, status (200), strict-transport-security:max-age=604800 ...
  • changing chrome's "disable cache" checkbox doesn't seem to effect things
  • we've experienced this on man chrome browsers on different computers. I'm running 44.0 64bit on max

Based on these issues the bug feels like some type of server configuration issue, we don't think it is cert related, but the fact that it only impacts chrome is really odd.

  • Share full Nginx configuration, Linux kernel version, iostat, free -m – Anatoly Jul 24 '15 at 20:45
  • @AKnox Did you ever manage to resolve this issue? We're seeing the same behaviour. Thanks! – Petter M Sep 4 '15 at 7:30
  • when you build nginx without spdy it works! there appears to be a way to get it to work otherwise, but we haven't come back around to working on it. – AKnox Sep 9 '15 at 12:46
  • I am experiencing this without https. Do you have any other information? – firedev Sep 24 '15 at 14:23
  • I'm also experiencing this issue without https and under apache—but only in Chrome. I have a feeling its a Chrome bug. Looking at past issues in Chromium—this one keeps popping up every now and again. – kylehayes Dec 9 '15 at 18:57

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.