diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py index 89f5a23de5..b11ddffafe 100644 --- a/locust/contrib/fasthttp.py +++ b/locust/contrib/fasthttp.py @@ -295,6 +295,9 @@ class by using the :py:func:`@task decorator ` on the methods, or b insecure: bool = True """Parameter passed to FastHttpSession. Default True, meaning no SSL verification.""" + concurrency: int = 1 + """Parameter passed to FastHttpSession. Describes number of concurrent requests allowed by the FastHttpSession. Default 1.""" + abstract = True """Dont register this as a User class that can be run by itself""" @@ -315,6 +318,7 @@ def __init__(self, environment): max_redirects=self.max_redirects, max_retries=self.max_retries, insecure=self.insecure, + concurrency=self.concurrency, user=self, )