title: What is a connection timeout during a http request
body: <p>I have found two explanations on "connection timeout":</p>
  
  <ol>
  <li><p>The server closes the socket connection when the client doesn't send any bytes to the server during [timeout] seconds. It appears to have some relation to HTTP header (<code>Connection: keep-alive</code>).</p></li>
  <li><p>The client stops attempting to connect to the server after [timeout] seconds if the socket connection was not established during that time.</p></li>
  </ol>
  
  <p>So I am confused about the definition. What is a connection timeout? What is the difference between a client side connection timeout and a server side connection timeout?</p>
  
  <p>And what's the difference between TimeToLive, connection timeout and request timeout?</p>