phanterpwa 13.26.0__py3-none-any.whl → 13.28.0__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.
- phanterpwa/__init__.py +1 -1
- phanterpwa/server.py +12 -7
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/METADATA +1 -1
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/RECORD +9 -9
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/LICENSE +0 -0
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/WHEEL +0 -0
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.26.0.dist-info → phanterpwa-13.28.0.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
phanterpwa/server.py
CHANGED
|
@@ -81,10 +81,18 @@ class PhanterPWATornado(object):
|
|
|
81
81
|
self.cpu_number = 1
|
|
82
82
|
needs_fork = self.cpu_number != 1 and self.cpu_number > -1
|
|
83
83
|
if needs_fork:
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
|
|
85
|
+
socs = {}
|
|
86
86
|
for x in self.projectConfig['BACKEND']:
|
|
87
87
|
current_port = self.projectConfig['BACKEND'][x]['port']
|
|
88
|
+
socket = netutil.bind_sockets(current_port)
|
|
89
|
+
socs[f'back_{x}'] = socket
|
|
90
|
+
for x in self.projectConfig['FRONTEND']:
|
|
91
|
+
current_port = self.projectConfig['FRONTEND'][x]['port']
|
|
92
|
+
socket = netutil.bind_sockets(current_port)
|
|
93
|
+
socs[f'front_{x}'] = socket
|
|
94
|
+
process.fork_processes(self.cpu_number)
|
|
95
|
+
for x in self.projectConfig['BACKEND']:
|
|
88
96
|
handlers_app = importlib.import_module("backapps.{0}.handlers".format(x))
|
|
89
97
|
if isinstance(handlers_app.HANDLER, (list, tuple)):
|
|
90
98
|
app = web.Application(
|
|
@@ -94,12 +102,10 @@ class PhanterPWATornado(object):
|
|
|
94
102
|
else:
|
|
95
103
|
app = handlers_app.HANDLER
|
|
96
104
|
|
|
97
|
-
socket = netutil.bind_sockets(current_port)
|
|
98
105
|
app_http_server = httpserver.HTTPServer(app)
|
|
99
|
-
app_http_server.add_sockets(
|
|
106
|
+
app_http_server.add_sockets(socs[f'back_{x}'])
|
|
100
107
|
|
|
101
108
|
for x in self.projectConfig['FRONTEND']:
|
|
102
|
-
current_port = self.projectConfig['FRONTEND'][x]['port']
|
|
103
109
|
handlers_app = importlib.import_module("frontapps.{0}.handlers".format(x))
|
|
104
110
|
if isinstance(handlers_app.HANDLER, (list, tuple)):
|
|
105
111
|
app = web.Application(
|
|
@@ -109,9 +115,8 @@ class PhanterPWATornado(object):
|
|
|
109
115
|
else:
|
|
110
116
|
app = handlers_app.HANDLER
|
|
111
117
|
|
|
112
|
-
socket = netutil.bind_sockets(current_port)
|
|
113
118
|
app_http_server = httpserver.HTTPServer(app)
|
|
114
|
-
app_http_server.add_sockets(
|
|
119
|
+
app_http_server.add_sockets(socs[f'back_{x}'])
|
|
115
120
|
else:
|
|
116
121
|
for x in self.projectConfig['BACKEND']:
|
|
117
122
|
current_port = self.projectConfig['BACKEND'][x]['port']
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
phanterpwa/__init__.py,sha256=
|
|
1
|
+
phanterpwa/__init__.py,sha256=s_neQ3C97M7VEpuZlvtGxptAhdNlV7cDsl89jwSJtvE,397
|
|
2
2
|
phanterpwa/__main__.py,sha256=1vSHtv6-sgAgpZiklf9bwarXX1b-fmKx1rjwJw4h78o,4017
|
|
3
3
|
phanterpwa/compiler.py,sha256=Je3qtVO_cZ69_PPWcXKyBgnRfQ-Ev-zkZ3UTN-ddOTQ,47478
|
|
4
4
|
phanterpwa/configer.py,sha256=O0IO5rf-hwFNdBjcz94OF-fqXKTWbqPElTsfS5V2beY,26327
|
|
5
5
|
phanterpwa/helpers.py,sha256=gUoSd6OeMtA08jwFMrOCsuou58nwech-aGdiPSCX9GI,12138
|
|
6
6
|
phanterpwa/mail.py,sha256=YrsiIQY_SpqySIc7mi6MfyY881DIsoYAJ5dPAz8vorE,5741
|
|
7
7
|
phanterpwa/reversexml.py,sha256=YJeI8VuzEPw0D2z0Cz-HLt2n27WyJawZh6HRNZX5Ujg,10764
|
|
8
|
-
phanterpwa/server.py,sha256=
|
|
8
|
+
phanterpwa/server.py,sha256=FmVgGQiBYjL1CokviNfoCg3EIImiPmg9X4YzhpgHS5c,14365
|
|
9
9
|
phanterpwa/sms.py,sha256=XUULyDSk5gPjBqupchIcaGv-C6kX66XxrXpmzfnSp_A,1313
|
|
10
10
|
phanterpwa/tools.py,sha256=SKwqx_suix-b1DP72a7z98jlnSWDmtGNWgCQq_ogB1I,46173
|
|
11
11
|
phanterpwa/xmlconstructor.py,sha256=DMtc9BXI2NMGGmLszZXh2A63Iv0D1qgoWtn0aKyrmoo,162695
|
|
@@ -435,10 +435,10 @@ phanterpwa/usual_sass/preloaders/indefined_text.sass,sha256=z4JuUtBrzoqH3HuNFXvN
|
|
|
435
435
|
phanterpwa/usual_sass/preloaders/run_points.sass,sha256=EYl93ljfgAc-ZLJ0VScrCoIlHP7Nr6NLdxj1zk2wm_E,3367
|
|
436
436
|
phanterpwa/usual_sass/preloaders/square.sass,sha256=TOsh9muP4zkYLUJcw4i1LeRs60NrtgRWBk_1oMt2_58,1348
|
|
437
437
|
phanterpwa/usual_sass/preloaders/squares.sass,sha256=kH1I89qEfmbvYxCtKFVNcxP5bWIjnqbheXVnyGF0VNo,3862
|
|
438
|
-
phanterpwa-13.
|
|
439
|
-
phanterpwa-13.
|
|
440
|
-
phanterpwa-13.
|
|
441
|
-
phanterpwa-13.
|
|
442
|
-
phanterpwa-13.
|
|
443
|
-
phanterpwa-13.
|
|
444
|
-
phanterpwa-13.
|
|
438
|
+
phanterpwa-13.28.0.dist-info/LICENSE,sha256=lGEW1PRSZOkug2-d0IJgryCjqt6zhxN5x9pFgy3lx2E,1087
|
|
439
|
+
phanterpwa-13.28.0.dist-info/METADATA,sha256=v2_79f5IJe1JSQA6TrrewOxqo3JZIUst_HXjbraefj0,1939
|
|
440
|
+
phanterpwa-13.28.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
441
|
+
phanterpwa-13.28.0.dist-info/dependency_links.txt,sha256=Pslekmz-4l1SpBO0x2aYkYZPCScmbrB9HUq1YvXYUzM,40
|
|
442
|
+
phanterpwa-13.28.0.dist-info/entry_points.txt,sha256=siJH2lFXIdsUBDRgcXV4blOb2_iku1vcbqxJ-trIQrw,56
|
|
443
|
+
phanterpwa-13.28.0.dist-info/top_level.txt,sha256=nF1WJ8AByxBv3bLKp3xySR2l2Twrj5n5n7C404lULSk,5319
|
|
444
|
+
phanterpwa-13.28.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|