locust 2.28.1.dev45__py3-none-any.whl → 2.28.1.dev49__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.
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.28.1.dev45'
16
- __version_tuple__ = version_tuple = (2, 28, 1, 'dev45')
15
+ __version__ = version = '2.28.1.dev49'
16
+ __version_tuple__ = version_tuple = (2, 28, 1, 'dev49')
locust/argument_parser.py CHANGED
@@ -241,10 +241,18 @@ def download_locustfile_from_master(master_host: str, master_port: int) -> str:
241
241
  tempclient.send(Message("locustfile", None, client_id))
242
242
  gevent.sleep(1)
243
243
 
244
+ def log_warning():
245
+ gevent.sleep(10)
246
+ while not got_reply:
247
+ sys.stderr.write("Waiting to connect to master to receive locustfile...\n")
248
+ gevent.sleep(60)
249
+
244
250
  def wait_for_reply():
245
251
  return tempclient.recv()
246
252
 
247
253
  gevent.spawn(ask_for_locustfile)
254
+ gevent.spawn(log_warning)
255
+
248
256
  try:
249
257
  # wait same time as for client_ready ack. not that it is really relevant...
250
258
  msg = gevent.spawn(wait_for_reply).get(timeout=runners.CONNECT_TIMEOUT * runners.CONNECT_RETRY_COUNT)
locust/web.py CHANGED
@@ -534,8 +534,8 @@ class WebUI:
534
534
  class RewriteFilter(logging.Filter):
535
535
  def filter(self, record) -> bool:
536
536
  msg = record.msg
537
- if msg.find("gevent._socket3.socket at") and msg.find("Invalid HTTP method: '\x16\x03"):
538
- record.msg = f"A request against Locust's Web UI was made using https:// instead of http:// (underlying error was {record.msg})"
537
+ if "gevent._socket3.socket at" in msg and "Invalid HTTP method: '\x16\x03" in msg:
538
+ record.msg = f"An https request was made against Locust's Web UI (which was expecting http). Underlying error was: {record.msg}"
539
539
  return True
540
540
 
541
541
  logger.addFilter(RewriteFilter())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.28.1.dev45
3
+ Version: 2.28.1.dev49
4
4
  Summary: Developer-friendly load testing framework
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/locustio/locust
@@ -1,7 +1,7 @@
1
1
  locust/__init__.py,sha256=g6oA-Ba_hs3gLWVf5MKJ1mvfltI8MFnDWG8qslqm8yg,1402
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=VGAyBM8lbcMr-HEgawOuM_AWsxHjX29mKy0bip4bREU,428
4
- locust/argument_parser.py,sha256=VVhInNMKaisjiywQ7H43ooONpHe1Ve1JmftHgnQnRfY,28715
3
+ locust/_version.py,sha256=TZY0EQ87BfgLNGRvYthvB4mUSjYsc7gsA_BhcefcB90,428
4
+ locust/argument_parser.py,sha256=sjQoJ1NTac9LdNYT7zn8RajlWqBQs8YFNv6uRExb2gg,28941
5
5
  locust/clients.py,sha256=YKuAyMAbxs8_-w7XJw0hc67KFBNNLxibsw6FwiS01Q8,14781
6
6
  locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
7
7
  locust/dispatch.py,sha256=vYh0QEDFgJ3hY0HgSk-EiNO7IP9ffzXF_Et8wB9JvsI,16995
@@ -16,7 +16,7 @@ locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
16
16
  locust/runners.py,sha256=Xc_cyRig7nL5Rtuk4hfH029JoQZP4U_yXGGK7t-h-SE,68406
17
17
  locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
18
18
  locust/stats.py,sha256=5jx9aD9Sky-kCZ3E-MjRT3xbwvxo9xyDtfcfP56zclo,45875
19
- locust/web.py,sha256=r8wim_DUC-A7fAaBubkDu5lo4ONCQNOtQMSpHT5lPks,27473
19
+ locust/web.py,sha256=arlBp-i4cwPXRlJDri0hOvM3j7HhXz5JsuEFK6sBnfk,27467
20
20
  locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  locust/contrib/fasthttp.py,sha256=vByPepw35DF84qZ2xK89yHgjOA_8btV0wig_rSR6p4g,26757
22
22
  locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
@@ -70,9 +70,9 @@ locust/webui/dist/index.html,sha256=sTykKMrWk5UeHVD9T6hH4H4LelzqaejEIVXoUcK5OpA,
70
70
  locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8,513
71
71
  locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
72
72
  locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
73
- locust-2.28.1.dev45.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
74
- locust-2.28.1.dev45.dist-info/METADATA,sha256=Doibhh9oKxF8oJhXFEoYc3AnafVpNnZVMmjPLLOpNYE,7323
75
- locust-2.28.1.dev45.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
76
- locust-2.28.1.dev45.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
77
- locust-2.28.1.dev45.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
78
- locust-2.28.1.dev45.dist-info/RECORD,,
73
+ locust-2.28.1.dev49.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
74
+ locust-2.28.1.dev49.dist-info/METADATA,sha256=81BWGM7VfCn6kmsXY_qD00vkVimUgO7oqPiQz5TYCys,7323
75
+ locust-2.28.1.dev49.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
76
+ locust-2.28.1.dev49.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
77
+ locust-2.28.1.dev49.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
78
+ locust-2.28.1.dev49.dist-info/RECORD,,