matlab-proxy 0.23.3__py3-none-any.whl → 0.23.4__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 matlab-proxy might be problematic. Click here for more details.
- matlab_proxy/app_state.py +15 -0
- {matlab_proxy-0.23.3.dist-info → matlab_proxy-0.23.4.dist-info}/METADATA +1 -1
- {matlab_proxy-0.23.3.dist-info → matlab_proxy-0.23.4.dist-info}/RECORD +7 -7
- {matlab_proxy-0.23.3.dist-info → matlab_proxy-0.23.4.dist-info}/LICENSE.md +0 -0
- {matlab_proxy-0.23.3.dist-info → matlab_proxy-0.23.4.dist-info}/WHEEL +0 -0
- {matlab_proxy-0.23.3.dist-info → matlab_proxy-0.23.4.dist-info}/entry_points.txt +0 -0
- {matlab_proxy-0.23.3.dist-info → matlab_proxy-0.23.4.dist-info}/top_level.txt +0 -0
matlab_proxy/app_state.py
CHANGED
|
@@ -1427,11 +1427,26 @@ class AppState:
|
|
|
1427
1427
|
else:
|
|
1428
1428
|
logger.debug("Sending HTTP request to stop the MATLAB process...")
|
|
1429
1429
|
try:
|
|
1430
|
+
import sys
|
|
1431
|
+
|
|
1430
1432
|
# Send HTTP request
|
|
1431
1433
|
await self.__send_stop_request_to_matlab()
|
|
1432
1434
|
|
|
1435
|
+
# Close the stderr stream to prevent indefinite hanging on it due to a child
|
|
1436
|
+
# process inheriting it, fixes https://github.com/mathworks/matlab-proxy/issues/44
|
|
1437
|
+
stderr_stream = matlab._transport.get_pipe_transport(
|
|
1438
|
+
sys.stderr.fileno()
|
|
1439
|
+
)
|
|
1440
|
+
if stderr_stream:
|
|
1441
|
+
logger.debug(
|
|
1442
|
+
"Closing matlab process stderr stream: %s",
|
|
1443
|
+
stderr_stream,
|
|
1444
|
+
)
|
|
1445
|
+
stderr_stream.close()
|
|
1446
|
+
|
|
1433
1447
|
# Wait for matlab to shutdown gracefully
|
|
1434
1448
|
await matlab.wait()
|
|
1449
|
+
|
|
1435
1450
|
assert (
|
|
1436
1451
|
matlab.returncode == 0
|
|
1437
1452
|
), "Failed to gracefully shutdown MATLAB via the embedded connector"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
matlab_proxy/__init__.py,sha256=6cwi8buKCMtw9OeWaOYUHEoqwl5MyJ_s6GxgNuqPuNg,1673
|
|
2
2
|
matlab_proxy/app.py,sha256=7BsHSM3PxTjN6eN10HLj74Y1wtu-Gl92g1RLbaTGz9U,34698
|
|
3
|
-
matlab_proxy/app_state.py,sha256=
|
|
3
|
+
matlab_proxy/app_state.py,sha256=x8rXfAA-TIvHARI4BLhP00VxYnrvhOLw6hKs_HTUyTE,71700
|
|
4
4
|
matlab_proxy/constants.py,sha256=L9fhXdcGH7Eu56h0aB_TNm3d6aNFr2nP6-HyQJ96TAA,1175
|
|
5
5
|
matlab_proxy/default_configuration.py,sha256=tBHaEq_bYsX2uC9pPA9mi_8M6o94ij-rxq8mbvcYpFc,1874
|
|
6
6
|
matlab_proxy/devel.py,sha256=nR6XPVBUEdQ-RZGtYvX1YHTp8gj9cuw5Hp8ahasMBc8,14310
|
|
@@ -121,9 +121,9 @@ tests/unit/util/mwi/embedded_connector/test_helpers.py,sha256=vYTWNUTuDeaygo16JG
|
|
|
121
121
|
tests/unit/util/mwi/embedded_connector/test_request.py,sha256=PR-jddnXDEiip-lD7A_QSvRwEkwo3eQ8owZlk-r9vnk,1867
|
|
122
122
|
tests/utils/__init__.py,sha256=ttzJ8xKWGxOJZz56qOiWOn6sp5LGomkZMn_w4KJLRMU,42
|
|
123
123
|
tests/utils/logging_util.py,sha256=VBy_NRvwau3C_CVTBjK5RMROrQimnJYHO2U0aKSZiRw,2234
|
|
124
|
-
matlab_proxy-0.23.
|
|
125
|
-
matlab_proxy-0.23.
|
|
126
|
-
matlab_proxy-0.23.
|
|
127
|
-
matlab_proxy-0.23.
|
|
128
|
-
matlab_proxy-0.23.
|
|
129
|
-
matlab_proxy-0.23.
|
|
124
|
+
matlab_proxy-0.23.4.dist-info/LICENSE.md,sha256=oF0h3UdSF-rlUiMGYwi086ZHqelzz7yOOk9HFDv9ELo,2344
|
|
125
|
+
matlab_proxy-0.23.4.dist-info/METADATA,sha256=KBooTQm1Jo4GgGtZsuGm2l5JoIR937BA5MQ6VpAHBXE,10199
|
|
126
|
+
matlab_proxy-0.23.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
127
|
+
matlab_proxy-0.23.4.dist-info/entry_points.txt,sha256=ZAlCUsgKzGcAeQaMZOq31FrTB5tQ8Ypq8Op_8U600-A,305
|
|
128
|
+
matlab_proxy-0.23.4.dist-info/top_level.txt,sha256=KF-347aoRGsfHTpiSqfIPUZ95bzK5-oMIu8S_TUcu-w,40
|
|
129
|
+
matlab_proxy-0.23.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|