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 +0 -0
- django_bolt/management/commands/runbolt.py +9 -2
- {django_bolt-0.2.4.dist-info → django_bolt-0.2.5.dist-info}/METADATA +1 -1
- {django_bolt-0.2.4.dist-info → django_bolt-0.2.5.dist-info}/RECORD +6 -6
- {django_bolt-0.2.4.dist-info → django_bolt-0.2.5.dist-info}/WHEEL +0 -0
- {django_bolt-0.2.4.dist-info → django_bolt-0.2.5.dist-info}/entry_points.txt +0 -0
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=
|
|
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,8 +1,8 @@
|
|
|
1
|
-
django_bolt-0.2.
|
|
2
|
-
django_bolt-0.2.
|
|
3
|
-
django_bolt-0.2.
|
|
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=
|
|
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=
|
|
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.
|
|
92
|
+
django_bolt-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|