grpc: adjustment when starting a session to not update session options for empty values, since they may override values set in /etc/core/core.conf

This commit is contained in:
Blake Harnden 2023-03-21 15:34:13 -07:00
parent 59f814eac0
commit d52e0c4547

View file

@ -282,7 +282,8 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
# session options
for option in request.session.options.values():
session.options.set(option.name, option.value)
if option.value:
session.options.set(option.name, option.value)
session.metadata = dict(request.session.metadata)
# add servers