locust 2.19.2.dev22__py3-none-any.whl → 2.19.2.dev35__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of locust might be problematic. Click here for more details.

locust/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.19.2.dev22'
16
- __version_tuple__ = version_tuple = (2, 19, 2, 'dev22')
15
+ __version__ = version = '2.19.2.dev35'
16
+ __version_tuple__ = version_tuple = (2, 19, 2, 'dev35')
@@ -539,7 +539,7 @@ class ErrorResponse:
539
539
  class LocustUserAgent(UserAgent):
540
540
  response_type = FastResponse
541
541
  request_type = FastRequest
542
- valid_response_codes = frozenset([200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 301, 302, 303, 307])
542
+ valid_response_codes = frozenset([200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 301, 302, 303, 304, 307])
543
543
 
544
544
  def __init__(self, client_pool: Optional[HTTPClientPool] = None, **kwargs):
545
545
  super().__init__(**kwargs)
locust/runners.py CHANGED
@@ -998,6 +998,10 @@ class MasterRunner(DistributedRunner):
998
998
  self.connection_broken = True
999
999
  gevent.sleep(FALLBACK_INTERVAL)
1000
1000
  continue
1001
+ except KeyboardInterrupt:
1002
+ logging.debug(
1003
+ "Got KeyboardInterrupt in client_listener. Other greenlets should catch this and shut down."
1004
+ )
1001
1005
  if msg.type == "client_ready":
1002
1006
  if not msg.data:
1003
1007
  logger.error(f"An old (pre 2.0) worker tried to connect ({client_id}). That's not going to work.")