From 4fce676b4ff6d3eb0746992b82f7890885d4c90349332ecb47e0d154d2fb3075 Mon Sep 17 00:00:00 2001 From: Yan Gao Date: Mon, 22 Jul 2013 08:19:09 +0000 Subject: [PATCH 1/2] - ringbuffer: Make max_size of ringbuffer accurate so shm ipc max msg size value is honored - ipcs: For shm ipc, always retry outstanding notifications when next event is sent - ipc_socket: In fbsd send() returns ENOBUFS when dgram queue is full, this should be treated similar to EAGAIN - kqueue: Properly enable kqueue filter in poll loop - ipcs: Attempt to resend outstanding event notifications during event send - ipcs: Disconnect shm ipc connection when poll socket returns error on msg receive - ipcs: Properly disconnect client connection on POLLNVAL or any other error causing connection removal from mainloop. - Upstream version cs: 39e9ef542dc89893c7c5af4fbd539338266e8031 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=24 --- _service | 2 +- libqb.changes | 12 ++++++++++++ libqb.spec | 6 ++---- libqb.tar.bz2 | 4 ++-- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/_service b/_service index 134c1ae..edf8eaf 100644 --- a/_service +++ b/_service @@ -8,7 +8,7 @@ git commit hash and bump "version" if necessary --> 0.14.4 - 7c6e109046ec772a97a7fe2cdf61f84fc2155b7e + 39e9ef542dc89893c7c5af4fbd539338266e8031 diff --git a/libqb.changes b/libqb.changes index 6d329e3..385f73a 100644 --- a/libqb.changes +++ b/libqb.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jul 22 07:38:56 UTC 2013 - ygao@suse.com + +- ringbuffer: Make max_size of ringbuffer accurate so shm ipc max msg size value is honored +- ipcs: For shm ipc, always retry outstanding notifications when next event is sent +- ipc_socket: In fbsd send() returns ENOBUFS when dgram queue is full, this should be treated similar to EAGAIN +- kqueue: Properly enable kqueue filter in poll loop +- ipcs: Attempt to resend outstanding event notifications during event send +- ipcs: Disconnect shm ipc connection when poll socket returns error on msg receive +- ipcs: Properly disconnect client connection on POLLNVAL or any other error causing connection removal from mainloop. +- Upstream version cs: 39e9ef542dc89893c7c5af4fbd539338266e8031 + ------------------------------------------------------------------- Tue Jul 2 12:02:52 UTC 2013 - coolo@suse.com diff --git a/libqb.spec b/libqb.spec index a999a44..51e8c1b 100644 --- a/libqb.spec +++ b/libqb.spec @@ -1,7 +1,7 @@ # # spec file for package libqb # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,8 +31,8 @@ BuildRequires: automake BuildRequires: check-devel BuildRequires: doxygen BuildRequires: libtool -BuildRequires: procps BuildRequires: pkgconfig +BuildRequires: procps # Need git so build-aux/git-version-gen can extract the version number and # commit hash during autogen run (not used currently) #BuildRequires: git @@ -44,7 +44,6 @@ tracing, ipc, and poll. %package -n libqb0 Summary: An IPC library for high performance servers -License: LGPL-2.1+ Group: System/Libraries Provides: %{name} = %{version} @@ -55,7 +54,6 @@ tracing, ipc, and poll. %package devel Summary: Development files for %{name} -License: LGPL-2.1+ Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} Requires: pkgconfig diff --git a/libqb.tar.bz2 b/libqb.tar.bz2 index 9f45e2c..b67048b 100644 --- a/libqb.tar.bz2 +++ b/libqb.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1493db31821e43cbeb6a2d0c2dcb39401230a10e7cd0a0b2ea8c7e9b393f16db -size 468835 +oid sha256:87c5ea7bbe850c070860e8bed57a292d09f8a0eb7572abc869c6cb3b23c8e0c6 +size 470615 From 570d5b039c3af3c47ee10e909f9020a306f16e3043a6fc9a54bf6a6fdd8cea38 Mon Sep 17 00:00:00 2001 From: Yan Gao Date: Fri, 26 Jul 2013 01:59:17 +0000 Subject: [PATCH 2/2] - Bump version to 0.16.0 - ipc_socket.c: Detect EOF connection on connection STREAM socket - ipc_socket.c: Handle the unlikely event of an EAGAIN or EINTR during dgram max size detection - Fixes sem leak - Fixes less-than-zero comparision of unsigned int - Fixes double fd close - Fixes fd leak - Fixes use ater free in shm disconnect - Fixes use after free during ipcs client disconnect - ipcc: Add abilty to verify dgram kernel buffer size meets max msg value - Upstream version cs: 75f7ed373758b3cb9087e89e4fae17379dd7b483 (v0.16.0) OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=25 --- _service | 4 ++-- libqb.changes | 15 +++++++++++++++ libqb.spec | 6 +++--- libqb.tar.bz2 | 4 ++-- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/_service b/_service index edf8eaf..47c6a63 100644 --- a/_service +++ b/_service @@ -7,8 +7,8 @@ To update to a new release, change "revision" to the desired git commit hash and bump "version" if necessary --> - 0.14.4 - 39e9ef542dc89893c7c5af4fbd539338266e8031 + 0.16.0 + 75f7ed373758b3cb9087e89e4fae17379dd7b483 diff --git a/libqb.changes b/libqb.changes index 385f73a..26b9b35 100644 --- a/libqb.changes +++ b/libqb.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Jul 26 01:19:30 UTC 2013 - ygao@suse.com + +- Bump version to 0.16.0 +- ipc_socket.c: Detect EOF connection on connection STREAM socket +- ipc_socket.c: Handle the unlikely event of an EAGAIN or EINTR during dgram max size detection +- Fixes sem leak +- Fixes less-than-zero comparision of unsigned int +- Fixes double fd close +- Fixes fd leak +- Fixes use ater free in shm disconnect +- Fixes use after free during ipcs client disconnect +- ipcc: Add abilty to verify dgram kernel buffer size meets max msg value +- Upstream version cs: 75f7ed373758b3cb9087e89e4fae17379dd7b483 (v0.16.0) + ------------------------------------------------------------------- Mon Jul 22 07:38:56 UTC 2013 - ygao@suse.com diff --git a/libqb.spec b/libqb.spec index 51e8c1b..45933d2 100644 --- a/libqb.spec +++ b/libqb.spec @@ -17,12 +17,12 @@ Name: libqb -Version: 0.14.4 +Version: 0.16.0 Release: 0 Summary: An IPC library for high performance servers License: LGPL-2.1+ Group: System/Libraries -Url: http://www.libqb.org +Url: https://github.com/ClusterLabs/libqb Source0: %{name}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -67,7 +67,7 @@ tracing, ipc, and poll. %setup -q -n %{name} %build -#./autogen.sh +./autogen.sh %configure --disable-static make %{?_smp_mflags} diff --git a/libqb.tar.bz2 b/libqb.tar.bz2 index b67048b..de713da 100644 --- a/libqb.tar.bz2 +++ b/libqb.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87c5ea7bbe850c070860e8bed57a292d09f8a0eb7572abc869c6cb3b23c8e0c6 -size 470615 +oid sha256:d5b677f36efc40008a3f811654438184e279eb6a231078f5af9d68940960ef2f +size 471525