From 12637bf18198c7d64e3a134b19b7f79c3e8c0bf3 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Fri, 8 Sep 2023 07:58:46 +0800 Subject: [PATCH] set rdma handler listen port --- libserverframe.spec | 8 ++++---- src/sf_global.c | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libserverframe.spec b/libserverframe.spec index 6bc68e4..e66d341 100644 --- a/libserverframe.spec +++ b/libserverframe.spec @@ -2,7 +2,7 @@ %define CommitVersion %(echo $COMMIT_VERSION) Name: libserverframe -Version: 1.1.29 +Version: 1.2.0 Release: 1%{?dist} Summary: network framework library License: AGPL v3.0 @@ -10,11 +10,11 @@ Group: Arch/Tech URL: http://github.com/happyfish100/libserverframe/ Source: http://github.com/happyfish100/libserverframe/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: libfastcommon-devel >= 1.0.69 +BuildRequires: libfastcommon-devel >= 1.0.70 Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id -Requires: libfastcommon >= 1.0.69 +Requires: libfastcommon >= 1.0.70 %description common framework library diff --git a/src/sf_global.c b/src/sf_global.c index 0508621..9e57dfa 100644 --- a/src/sf_global.c +++ b/src/sf_global.c @@ -555,6 +555,11 @@ int sf_load_context_from_config_ex(SFContext *sf_context, sock_handler->outer.enabled = true; } + rdma_handler->inner.port = sock_handler->inner.port; + rdma_handler->inner.enabled = sock_handler->inner.enabled; + rdma_handler->outer.port = sock_handler->outer.port; + rdma_handler->outer.enabled = sock_handler->outer.enabled; + inner_bind_addr = iniGetStrValue(config->ini_ctx.section_name, "inner_bind_addr", config->ini_ctx.context); outer_bind_addr = iniGetStrValue(config->ini_ctx.section_name,