(self)
| 22 | self._thread = None |
| 23 | |
| 24 | def run(self): |
| 25 | self.total_requests = self.clients * self.req_per_client |
| 26 | conn_per_client = 5 |
| 27 | args = [self.env.h2load, f"--connect-to=localhost:{self.env.https_port}", |
| 28 | "--h1", # use only http/1.1 |
| 29 | "-n", str(self.total_requests), # total # of requests to make |
| 30 | "-c", str(conn_per_client * self.clients), # total # of connections to make |
| 31 | "-r", str(self.clients), # connections at a time |
| 32 | "--rate-period", "2", # create conns every 2 sec |
| 33 | self.url, |
| 34 | ] |
| 35 | self.result = self.env.run(args) |
| 36 | |
| 37 | def start(self): |
| 38 | self._thread = Thread(target=self.run) |
no outgoing calls
no test coverage detected