title: Declaring more than 2 upstreams in the nginx config causes nginx to take 80 seconds to restart
body: <p>I have 4 upstream blocks in my nginx config that I'm using depending on the incoming request's scheme or the geo location of the requesting client.</p>
  
  <p>Every time I have to restart nginx it takes around 80 seconds to complete.  If I only have 3 upstreams declared it takes about 40 seconds, and with 2 upstreams it restarts pretty much immediately, like it normally does.</p>
  
  <p>Reloads take 1/2 the time (40 seconds with 4 upstreams, 20 seconds with 3 upstreams).</p>
  
  <p>There are no errors logged in the nginx error log, even on debug log level &amp; if I run <code>/usr/sbin/nginx -t</code> it says the test is successful, but takes as long as a reload does.</p>