remoteRF-server 1.1.0.dev52__py3-none-any.whl → 1.1.0.dev53__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.
@@ -196,7 +196,10 @@ def _dispatch(request: grpc_pb2.GenericRPCRequest, peer_host: str, bound: Option
196
196
  if bound is not None:
197
197
  if not (device or name == "IDL:get_drivers"):
198
198
  return {"a": map_arg(f"{name} is not available on the direct path")}
199
- reason = bound["authorize"](name)
199
+ try:
200
+ reason = bound["authorize"](name)
201
+ except Exception as exc: # noqa: BLE001 - undecidable is not a refusal: the call does not run
202
+ return {"a": map_arg(f"authorization unavailable: {exc}")}
200
203
  if reason is not None:
201
204
  raise PathRefused(reason)
202
205
  elif not (device or name.startswith("IDL:")):
@@ -398,8 +401,10 @@ async def _offer(key: str, user: str, remote: dict, bound: Optional[dict] = None
398
401
  old = _paths.get(key)
399
402
  if old is not None:
400
403
  await old.close()
401
- session = key.split("/", 1)[0]
402
- siblings = [path for k, path in _paths.items() if k.split("/", 1)[0] == session]
404
+ # The session is everything but the offer id: one login's processes, or
405
+ # one federated reservation's.
406
+ session = key.rsplit("/", 1)[0]
407
+ siblings = [path for k, path in _paths.items() if k.rsplit("/", 1)[0] == session]
403
408
  for path in siblings[: max(0, len(siblings) - MAX_PATHS_PER_SESSION + 1)]:
404
409
  await path.close()
405
410
  ice = Ice(ice_controlling=False, stun_server=stun_server(default_route_address()))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: remoteRF-server
3
- Version: 1.1.0.dev52
3
+ Version: 1.1.0.dev53
4
4
  Summary: RemoteRF server-side control package
5
5
  License: GPL-3.0-or-later
6
6
  Classifier: Programming Language :: Python :: 3
@@ -56,7 +56,7 @@ remoteRF_server/server/commands.py,sha256=J70-S7TdpD5vkjUqDLnGhWv5bwNogNx9GAp85L
56
56
  remoteRF_server/server/console.py,sha256=J91LfwPVmBgielOxfE740NOYduekggyZkqi-47y_A4w,4472
57
57
  remoteRF_server/server/control.py,sha256=Uq1Fk0zIoHHX_EXfz3OuNle8urvO_UhAiB5Lk5cs2e4,5177
58
58
  remoteRF_server/server/device_manager.py,sha256=PPuCwlPSmjfVpCqy_hCaOr9WvFgE8mqtLMhWOAgXNDA,39281
59
- remoteRF_server/server/direct_path.py,sha256=gXBNNf5eG7NSe0YpkAz1n874LRzfRPbSNJ-MAgRFCR0,19995
59
+ remoteRF_server/server/direct_path.py,sha256=2OmmL9cn9rZayQbuIwXdisWJp7kSV2eLGgM_V1ccJeE,20299
60
60
  remoteRF_server/server/dynamic_v2.py,sha256=AMhQEFhNAvCNcF-PdfCCQQLmeoaR7s1Os8et1KFGn_8,70814
61
61
  remoteRF_server/server/global_onboarding.py,sha256=NcKG8TYhCJEiaCtdXL1jEgVm-R_xWpOIj5KI4bWfkr0,39942
62
62
  remoteRF_server/server/grpc_server.py,sha256=91FpJubzN_Wfuk6fW_owIEzNCukd333sAGW68FUU8pk,46787
@@ -91,9 +91,9 @@ remoteRF_server/tools/gen_certs.py,sha256=Vbyu8JjRu__UYPVmyCRXt5SOw0Za1HV7g1md3G
91
91
  remoteRF_server/tools/gist_status.py,sha256=SFv2iQgQrIKT9gxKrU-_Dr7S0p0rE4wQM6J3OC6FcoM,4649
92
92
  remoteRF_server/tools/gist_status_testing.py,sha256=IYw7UkPjAUpKDTtIlnYGb5g6SJkwz4TRGUfJJ6f4LhQ,2690
93
93
  remoteRF_server/tools/introspect_uhd.py,sha256=vUpPb0rM9tsHPxWadS3EfMDE-gMd-TvNV0TjrZOQqBY,4531
94
- remoterf_server-1.1.0.dev52.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
95
- remoterf_server-1.1.0.dev52.dist-info/METADATA,sha256=LmVnJnoF5UA5wujJps0P7UC8xRVFb3PYy6RejNW310o,42069
96
- remoterf_server-1.1.0.dev52.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
97
- remoterf_server-1.1.0.dev52.dist-info/entry_points.txt,sha256=_bbKk65PfYi-n6zUjqOiOwcalf_Ws1TCGATIe1TukxE,136
98
- remoterf_server-1.1.0.dev52.dist-info/top_level.txt,sha256=NuYWe8dSx3qdbxshWBwOgx68EHmJ9I8Zvxam4ARsQ_I,30
99
- remoterf_server-1.1.0.dev52.dist-info/RECORD,,
94
+ remoterf_server-1.1.0.dev53.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
95
+ remoterf_server-1.1.0.dev53.dist-info/METADATA,sha256=bMZCNvldB-N-Jc-N0hdlIDB1TsaQrzyF5h39gTco-2U,42069
96
+ remoterf_server-1.1.0.dev53.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
97
+ remoterf_server-1.1.0.dev53.dist-info/entry_points.txt,sha256=_bbKk65PfYi-n6zUjqOiOwcalf_Ws1TCGATIe1TukxE,136
98
+ remoterf_server-1.1.0.dev53.dist-info/top_level.txt,sha256=NuYWe8dSx3qdbxshWBwOgx68EHmJ9I8Zvxam4ARsQ_I,30
99
+ remoterf_server-1.1.0.dev53.dist-info/RECORD,,