import libqb-1.0.3-13.el8_7
This commit is contained in:
parent
8f90c3c7dc
commit
0f929cb9ac
25
SOURCES/bz2111711-connretry-recv.patch
Normal file
25
SOURCES/bz2111711-connretry-recv.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/lib/ipc_setup.c b/lib/ipc_setup.c
|
||||||
|
index 23eeabb..0a720c8 100644
|
||||||
|
--- a/lib/ipc_setup.c
|
||||||
|
+++ b/lib/ipc_setup.c
|
||||||
|
@@ -447,6 +447,7 @@ qb_ipcc_us_setup_connect(struct qb_ipcc_connection *c,
|
||||||
|
int32_t res;
|
||||||
|
struct qb_ipc_connection_request request;
|
||||||
|
struct ipc_auth_data *data;
|
||||||
|
+ int retry_count = 0;
|
||||||
|
#ifdef QB_LINUX
|
||||||
|
int off = 0;
|
||||||
|
int on = 1;
|
||||||
|
@@ -478,7 +479,12 @@ qb_ipcc_us_setup_connect(struct qb_ipcc_connection *c,
|
||||||
|
}
|
||||||
|
|
||||||
|
qb_ipc_us_ready(&c->setup, NULL, -1, POLLIN);
|
||||||
|
+retry:
|
||||||
|
res = qb_ipc_us_recv_msghdr(data);
|
||||||
|
+ if (res == -EAGAIN && ++retry_count < 10) {
|
||||||
|
+ usleep(100000);
|
||||||
|
+ goto retry;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
#ifdef QB_LINUX
|
||||||
|
setsockopt(c->setup.u.us.sock, SOL_SOCKET, SO_PASSCRED, &off,
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: libqb
|
Name: libqb
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Summary: An IPC library for high performance servers
|
Summary: An IPC library for high performance servers
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -17,6 +17,7 @@ Patch2: bz1714854-improve-shm-security.patch
|
|||||||
Patch3: bz1718773-avoid-ipc-deadlock.patch
|
Patch3: bz1718773-avoid-ipc-deadlock.patch
|
||||||
Patch4: bz1836146-ipc_set_ownership.patch
|
Patch4: bz1836146-ipc_set_ownership.patch
|
||||||
Patch5: bz1836146-covscan-fixes.patch
|
Patch5: bz1836146-covscan-fixes.patch
|
||||||
|
Patch6: bz2111711-connretry-recv.patch
|
||||||
|
|
||||||
BuildRequires: autoconf automake libtool doxygen procps check-devel
|
BuildRequires: autoconf automake libtool doxygen procps check-devel
|
||||||
# https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
|
# https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
|
||||||
@ -38,6 +39,7 @@ and polling.
|
|||||||
%patch3 -p1 -b .bz1718773-avoid-ipc-deadlock.patch
|
%patch3 -p1 -b .bz1718773-avoid-ipc-deadlock.patch
|
||||||
%patch4 -p1 -b .bz1836146-ipc_set_ownership.patch
|
%patch4 -p1 -b .bz1836146-ipc_set_ownership.patch
|
||||||
%patch5 -p1 -b .bz1836146-covscan-fixes.patch
|
%patch5 -p1 -b .bz1836146-covscan-fixes.patch
|
||||||
|
%patch6 -p1 -b .bz2111711-connretry-recv.patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@ -103,6 +105,10 @@ The %{name}-tests package contains the %{name} test suite.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 12 2022 Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-13
|
||||||
|
ipc: Retry receiving credentials if the the message is short
|
||||||
|
Resolves: rhbz#2151300
|
||||||
|
|
||||||
* Wed May 20 2020 Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-11
|
* Wed May 20 2020 Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-11
|
||||||
Correctly set socket directory permissions when
|
Correctly set socket directory permissions when
|
||||||
qb_ipcs_connection_auth_set() is called
|
qb_ipcs_connection_auth_set() is called
|
||||||
|
Loading…
Reference in New Issue
Block a user