Separate flags for forcing foolscap between client and server.
This commit is contained in:
parent
9663db522c
commit
db445af1c4
|
@ -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)
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ _client_config = configutil.ValidConfiguration(
|
|||
"shares.total",
|
||||
"shares._max_immutable_segment_size_for_testing",
|
||||
"storage.plugins",
|
||||
"force_foolscap",
|
||||
),
|
||||
"storage": (
|
||||
"debug_discard",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue