code: def timeout_keep_alive_handler(self):
          
          if not self.transport.is_closing():
              event = h11.ConnectionClosed()
              self.conn.send(event)
              self.transport.close()
docs: Called on a keep-alive connection if no new data is received after a short delay.