set rdma handler listen port

support_rdma
YuQing 2023-09-08 07:58:46 +08:00
parent dedc023235
commit 12637bf181
2 changed files with 9 additions and 4 deletions

View File

@ -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
@ -12,9 +12,9 @@ Source: http://github.com/happyfish100/libserverframe/%{name}-%{version}.tar.gz
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

View File

@ -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,