Separate flags for forcing foolscap between client and server.

This commit is contained in:
Itamar Turner-Trauring 2023-03-09 09:59:36 -05:00
parent 9663db522c
commit db445af1c4
4 changed files with 9 additions and 1 deletions

View File

@ -367,6 +367,12 @@ def _create_node(reactor, request, temp_dir, introducer_furl, flog_gatherer, nam
'force_foolscap',
str(force_foolscap),
)
set_config(
config,
'client',
'force_foolscap',
str(force_foolscap),
)
write_config(FilePath(config_path), config)
created_d.addCallback(created)

View File

@ -94,6 +94,7 @@ _client_config = configutil.ValidConfiguration(
"shares.total",
"shares._max_immutable_segment_size_for_testing",
"storage.plugins",
"force_foolscap",
),
"storage": (
"debug_discard",

View File

@ -300,7 +300,7 @@ class StorageFarmBroker(service.MultiService):
)
if not self.node_config.get_config(
"storage", "force_foolscap", default=True, boolean=True,
"client", "force_foolscap", default=True, boolean=True,
) and len(server["ann"].get(ANONYMOUS_STORAGE_NURLS, [])) > 0:
s = HTTPNativeStorageServer(
server_id,

View File

@ -871,6 +871,7 @@ class SystemTestMixin(pollmixin.PollMixin, testutil.StallMixin):
setnode("nickname", u"client %d \N{BLACK SMILING FACE}" % (which,))
setconf(config, which, "storage", "force_foolscap", str(force_foolscap))
setconf(config, which, "client", "force_foolscap", str(force_foolscap))
tub_location_hint, tub_port_endpoint = self.port_assigner.assign(reactor)
setnode("tub.port", tub_port_endpoint)