title: CURL request with 'Connection: close' fails to load all of content
body: <p>I have a server that defaults to sending HTTP/1.1 responses with "chunked" data. However, when I curl that server using "Connection: close" then it only seems to report the first 3-4 kilobytes of data.</p>
  
  <p>I have clients that send that header - how do I make sure they get all the content from nginx + fastcgi before they close the connection to my server?</p>
  
  <pre><code>curl -v http://example.com -sL -H 'Connection: close'
  </code></pre>
  
  <p>Here is the example of the conversation curl records:</p>
  
  <pre><code>user@server:~$ curl -v http://example.com -sL -H 'Connection: close'
  * About to connect() to example.com port 80 (#0)
  *   Trying 111.111.111.111... connected
  * Connected to example.com (111.111.111.111) port 80 (#0)
  &gt; GET / HTTP/1.1
  &gt; Host: example.com
  &gt; Accept: */*
  &gt; Connection: close
  &gt; 
  &lt; HTTP/1.1 200 OK
  &lt; Server: nginx/1.6.2
  &lt; Date: Mon, 22 Dec 2014 20:15:33 GMT
  &lt; Content-Type: text/html; charset="utf-8"
  &lt; Connection: close
  &lt; Set-Cookie: PHPSESSID=if5b1f79ml57dogas9aqa3uq20; path=/
  &lt; Expires: Thu, 19 Nov 1981 08:52:00 GMT
  &lt; Pragma: no-cache
  &lt; Access-Control-Allow-Origin: *
  &lt; X-Expires-Orig: Thu, 19 Nov 1981 08:52:00 GMT
  &lt; Transfer-Encoding: chunked
  &lt; 
  &lt; {...3-4 kbytes of data ....}
  &lt;
  * Recv failure: Connection reset by peer
  * Closing connection #0
  </code></pre>