client: separate global options from multiple servers
authorVincent Fu <vincent.fu@samsung.com>
Tue, 7 Jan 2025 21:29:36 +0000 (21:29 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Thu, 23 Jan 2025 17:57:42 +0000 (12:57 -0500)
commit6f771553f9072488dc37b08bd48b776c2295b208
tree45585879291396caeb2baa8d3c2609f3619e8752
parent4a1f2a5b76b768a237ece419379bb99e94cb0523
client: separate global options from multiple servers

In a single client invocation, currently all global options from all
servers accumulate in a single global options dictionary. This is fine
if the invocation creates only a single server session, but when a
client connects to multiple servers, this is a mess because there is no
way to assign different global options to different jobs.

This patch instead creates a global options array when a client creates
multiple server sessions. Each array element contains the global options
for a different server session and is identified by the hostname and
port. When the client connects to only a single server, the global
options object remains a dictionary in order to maintain backward
compatibility.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
client.c
client.h