title: Indy Http 10 Connection Closed Gracefully
body: <p>I'm working at an application which uses Indy's <code>TIdHTTP</code> component.</p>
  
  <p>I send a request to my HTTP server, and it sends back a report.  But, when the report is too long, I get this error:</p>
  
  <blockquote>
    <p>Connection Closed Gracefully</p>
  </blockquote>
  
  <p>Here is a part of my code:</p>
  
  <pre><code>procedure TdmAthlos.HttpClientAuthorization(Sender: TObject;  Authentication: TIdAuthentication; var Handled: Boolean);
  begin
    HttpClient.Socket.Host                       := fOptiuni.edIP.Text;
    HttpClient.Request.BasicAuthentication       := True;
    HttpClient.Request.Authentication.Username   := fOptiuni.edUsername.Text;
    HttpClient.Request.Authentication.Password   := fOptiuni.edPassword.Text;
  end;
  
  procedure TdmAthlos.HttpClientConnected(Sender: TObject);
  begin
    HttpClient.Socket.Binding.SetKeepAliveValues(True, 1500, 1000);
  end;
  </code></pre>