title: python fastAPI Server. How to extend connection timeout
body: <p>I'm using fastAPI python framework to build a simple POST/GET https server.
  On the client side, i send heartbeat POST messages every 10 seconds and i'd like to keep my connection open during this period.</p>
  <p>However, for some reason I see that every new heartbeat, my connection get disconnected by the peer, so I need to re-establish it. If the idle period between 2 consecutive keepalives is 1 second, the Connection remains active, and can be reused.</p>
  <p>I'm using <code>HTTP/1.1</code> with <code>Connection: keep-alive</code>, but it is entirely up to the server how long it will keep the connection alive, and I'm looking for a way to extend this timeout to ~15 seconds. is there any suitable way to do it ? or even just make the server print proper log message when it decide to disconnect the client peer ...</p>
  <p>P.S. in order to start the server I'm using the following command, Perhaps it need to be modified ?</p>
  <pre><code>uvicorn main:app --port 44444 --host 0.0.0.0 --reload  --ssl-keyfile ./key.pem 
  --ssl-certfile ./certificate.pem --log-level debug
  </code></pre>