django-bolt 0.2.4__cp310-abi3-win_amd64.whl → 0.2.5__cp310-abi3-win_amd64.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 django-bolt might be problematic. Click here for more details.

django_bolt/_core.pyd CHANGED
Binary file
@@ -22,7 +22,7 @@ class Command(BaseCommand):
22
22
  "--processes", type=int, default=1, help="Number of processes (default: 1)"
23
23
  )
24
24
  parser.add_argument(
25
- "--workers", type=int, default=2, help="Workers per process (default: 2)"
25
+ "--workers", type=int, default=1, help="Workers per process (default: 1)"
26
26
  )
27
27
  parser.add_argument(
28
28
  "--no-admin",
@@ -34,6 +34,12 @@ class Command(BaseCommand):
34
34
  action="store_true",
35
35
  help="Enable auto-reload on file changes (development mode)"
36
36
  )
37
+ parser.add_argument(
38
+ "--backlog",
39
+ type=int,
40
+ default=1024,
41
+ help="Socket listen backlog size (default: 1024)"
42
+ )
37
43
 
38
44
  def handle(self, *args, **options):
39
45
  processes = options['processes']
@@ -246,9 +252,10 @@ class Command(BaseCommand):
246
252
  else:
247
253
  self.stdout.write(self.style.SUCCESS(f"[django-bolt] Starting server on http://{options['host']}:{options['port']}"))
248
254
  self.stdout.write(f"[django-bolt] Workers: {options['workers']}, Processes: {options['processes']}")
249
- # Set environment variable for Rust to read worker count
255
+ # Set environment variable for Rust to read worker count and backlog
250
256
  import os
251
257
  os.environ['DJANGO_BOLT_WORKERS'] = str(options['workers'])
258
+ os.environ['DJANGO_BOLT_BACKLOG'] = str(options['backlog'])
252
259
 
253
260
  # Determine compression config (server-level in Actix)
254
261
  # Priority: Django setting > first API with compression config
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-bolt
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -1,8 +1,8 @@
1
- django_bolt-0.2.4.dist-info/METADATA,sha256=WcTs8UntAqUHJrapMRCiNUgbtB646anFRRvaGl-JMrE,21980
2
- django_bolt-0.2.4.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
3
- django_bolt-0.2.4.dist-info/entry_points.txt,sha256=cUEGAdiOY6BryNhsgOS_50AONPPHajI3yvhqr56ZiaU,51
1
+ django_bolt-0.2.5.dist-info/METADATA,sha256=tBuV9WKfEKkPN5cAE_zyMNl3zBBWPITz5IR-KwCfWtA,21980
2
+ django_bolt-0.2.5.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
3
+ django_bolt-0.2.5.dist-info/entry_points.txt,sha256=cUEGAdiOY6BryNhsgOS_50AONPPHajI3yvhqr56ZiaU,51
4
4
  django_bolt/__init__.py,sha256=BerkkdUuHfxTJUKTFoXxfjYr6OFCb3MH88NIBEjphm4,3183
5
- django_bolt/_core.pyd,sha256=XMyXq12lOXHu6fKlJKSMmjm8ITa0ytvn3buTj3uDXHE,8955392
5
+ django_bolt/_core.pyd,sha256=8obPhzwlAWjui8CW2z4l8kdNR-49fJJhxsPIA9aTj2k,8956416
6
6
  django_bolt/_json.py,sha256=oGxi29DHB8UYvbqjtqtrP6gThk7Qonlw333c4_cTr6s,4917
7
7
  django_bolt/admin/__init__.py,sha256=BNN1afSvWvt-377rNzZLdNDEvKyMZXkmB_0MhTxAN8k,601
8
8
  django_bolt/admin/admin_detection.py,sha256=1yQkLx9rF5DLMjJqbx8n4c82UgS9JEAnUcPdRfFqAXk,5825
@@ -33,7 +33,7 @@ django_bolt/logging/config.py,sha256=SE_7yvYzPVdgvMUAK9yU3Dyn2HJY_EVkajm0aAhgcNw
33
33
  django_bolt/logging/middleware.py,sha256=_tkVN8cN8BloLv7Ebk-2RKBFkH4ooOTNs_dAxXSa0yU,10057
34
34
  django_bolt/management/__init__.py,sha256=f0hFqUIOIxXbeDzGL06KrZqWGSsIGVSVVh3EemtatMY,38
35
35
  django_bolt/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- django_bolt/management/commands/runbolt.py,sha256=DWNDq3cnNz-ulLwyY5xkm6ZQuGWB7xbDLhhobIHyJS4,17966
36
+ django_bolt/management/commands/runbolt.py,sha256=02Iricges7kgbDEAnILcVuGYgbxeuuExE42OxL9J4TA,18227
37
37
  django_bolt/middleware/__init__.py,sha256=C6e6vdSLqe4brMrKR4TueroD4f_OPsnoZZDlxkbyjbw,608
38
38
  django_bolt/middleware/compiler.py,sha256=Knxh3XouU70ymIskDB-JWn1TcHSMPQvUBXtTPHEJJRY,4766
39
39
  django_bolt/middleware/middleware.py,sha256=Qdr16OM15oOS1OYNnxFY3hJ0un9E8VaVwht-A8Qcuws,8113
@@ -89,4 +89,4 @@ django_bolt/testing/helpers.py,sha256=hq2HD1IEwHuW8tMgZO9ZW6BFdcE_JQXaV8sZc58LBD
89
89
  django_bolt/types.py,sha256=sk8huP2mArTr5A7FmTVmIke5z0oR-SW0OmzzRfrRlxQ,7982
90
90
  django_bolt/typing.py,sha256=sGlFUUXY8EJbYWCgARgNGLZPu7SaxxohZaSx1SRLYaE,8686
91
91
  django_bolt/views.py,sha256=KewSpL6g-zZxXnEkwun6hueX3S_Eji-d2dawzoqe-GM,41715
92
- django_bolt-0.2.4.dist-info/RECORD,,
92
+ django_bolt-0.2.5.dist-info/RECORD,,