title: Http server - slow read
body: <p>I am trying to simulate a slow http read attack against apache server running on my localhost.
  But it seems like, the server does not complain and simply waits forever for the client to read. </p>
  
  <p>This is what I do:</p>
  
  <ol>
  <li>Request a huge file (say ~1MB) from the http server</li>
  <li>Read the response from the server in a loop waiting 100 secs before successive reads</li>
  </ol>
  
  <p>Since the file is huge and the client receive buffer is small, the server has to send the file in multiple chunks. But, at the client side, I wait for 100 secs between successive reads. As a result, the server often polls the client and finds that, the receive window size of the client is zero since the client has not yet read the receive buffer.</p>
  
  <p>But it looks like the server does not bother to break the connection and it silently keeps polling the client. Server sends the data when the client window size is > 0 and again goes back to wait for the client.</p>
  
  <p>I want to know whether there are any apache config parameters that I can set to break the connection from the server side after waiting sometime for the client to read the data.</p>