Hello community, here is the log from the commit of package libqb for openSUSE:Factory checked in at 2014-01-13 12:03:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libqb (Old) and /work/SRC/openSUSE:Factory/.libqb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libqb" Changes: -------- --- /work/SRC/openSUSE:Factory/libqb/libqb.changes 2013-12-03 14:26:17.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libqb.new/libqb.changes 2014-01-13 12:03:04.000000000 +0100 @@ -1,0 +2,6 @@ +Thu Jan 9 15:18:57 UTC 2014 - y...@suse.com + +- IPC: Increase the listen backlog of IPC server (bnc#857779) +- Upstream version cs: b579f7af151f453a870bbaac037084df13b45ef9 + +------------------------------------------------------------------- Old: ---- libqb-0.16.0+git20131118.b09473f.tar.bz2 New: ---- libqb-0.16.0+git20140108.b579f7a.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libqb.spec ++++++ --- /var/tmp/diff_new_pack.VobZSI/_old 2014-01-13 12:03:05.000000000 +0100 +++ /var/tmp/diff_new_pack.VobZSI/_new 2014-01-13 12:03:05.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package libqb # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 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 @@ -17,7 +17,7 @@ Name: libqb -Version: 0.16.0+git20131118.b09473f +Version: 0.16.0+git20140108.b579f7a Release: 0 Summary: An IPC library for high performance servers License: LGPL-2.1+ ++++++ _service ++++++ --- /var/tmp/diff_new_pack.VobZSI/_old 2014-01-13 12:03:05.000000000 +0100 +++ /var/tmp/diff_new_pack.VobZSI/_new 2014-01-13 12:03:05.000000000 +0100 @@ -11,7 +11,7 @@ <param name="version">0.16.0</param> --> <param name="versionformat">0.16.0+git%cd.%h</param> - <param name="revision">b09473fd4a03b4434efd44408f7ae631a855f9cd</param> + <param name="revision">b579f7af151f453a870bbaac037084df13b45ef9</param> </service> <service name="recompress" mode="disabled"> ++++++ libqb-0.16.0+git20131118.b09473f.tar.bz2 -> libqb-0.16.0+git20140108.b579f7a.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libqb-0.16.0+git20131118.b09473f/include/qb/qbipcs.h new/libqb-0.16.0+git20140108.b579f7a/include/qb/qbipcs.h --- old/libqb-0.16.0+git20131118.b09473f/include/qb/qbipcs.h 2013-11-25 15:13:52.000000000 +0100 +++ new/libqb-0.16.0+git20140108.b579f7a/include/qb/qbipcs.h 2014-01-09 16:06:39.000000000 +0100 @@ -112,12 +112,16 @@ }; /** - * This callback is to check wether you want to accept a new connection. + * This callback is to check whether you want to accept a new connection. * * The type of checks you should do are authentication, service availabilty - * or process resource constraints. + * or process resource constraints. * @return 0 to accept or -errno to indicate a failure (sent back to the client) * + * @note If connection state data is allocated as a result of this callback + * being invoked, that data must be freed in the destroy callback. Just because + * the accept callback returns 0, that does not guarantee the + * create and closed callback functions will follow. * @note you can call qb_ipcs_connection_auth_set() within this function. */ typedef int32_t (*qb_ipcs_connection_accept_fn) (qb_ipcs_connection_t *c, @@ -125,12 +129,17 @@ /** * This is called after a new connection has been created. + * + * @note A client connection is not considered connected until + * this callback is invoked. */ typedef void (*qb_ipcs_connection_created_fn) (qb_ipcs_connection_t *c); /** * This is called after a connection has been disconnected. * + * @note This callback will only be invoked if the connection is + * successfully created. * @note if you return anything but 0 this function will be * repeativily called (until 0 is returned). */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libqb-0.16.0+git20131118.b09473f/lib/util_int.h new/libqb-0.16.0+git20140108.b579f7a/lib/util_int.h --- old/libqb-0.16.0+git20131118.b09473f/lib/util_int.h 2013-11-25 15:13:52.000000000 +0100 +++ new/libqb-0.16.0+git20140108.b579f7a/lib/util_int.h 2014-01-09 16:06:39.000000000 +0100 @@ -99,7 +99,7 @@ */ void qb_socket_nosigpipe(int32_t s); -#define SERVER_BACKLOG 5 +#define SERVER_BACKLOG 128 #ifndef UNIX_PATH_MAX #define UNIX_PATH_MAX 108 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libqb-0.16.0+git20131118.b09473f/tests/check_rb.c new/libqb-0.16.0+git20140108.b579f7a/tests/check_rb.c --- old/libqb-0.16.0+git20131118.b09473f/tests/check_rb.c 2013-11-25 15:13:52.000000000 +0100 +++ new/libqb-0.16.0+git20140108.b579f7a/tests/check_rb.c 2014-01-09 16:06:39.000000000 +0100 @@ -57,8 +57,9 @@ hdr.id, "actually the line number", i, __func__, __FILE__) + 1; hdr.size += sizeof(struct qb_ipc_request_header); + memcpy(my_buf, &hdr, sizeof(struct qb_ipc_request_header)); avail = qb_rb_space_free(rb); - actual = qb_rb_chunk_write(rb, &hdr, hdr.size); + actual = qb_rb_chunk_write(rb, my_buf, hdr.size); if (avail < (hdr.size + (3 * sizeof(uint32_t)))) { ck_assert_int_eq(actual, -EAGAIN); } else { @@ -72,13 +73,13 @@ str = my_buf + sizeof(struct qb_ipc_request_header); for (i = 0; i < 15; i++) { - actual = qb_rb_chunk_read(rb, &hdr, 512, 0); + actual = qb_rb_chunk_read(rb, my_buf, 512, 0); if (actual < 0) { ck_assert_int_eq(0, qb_rb_chunks_used(rb)); break; } + memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header)); str[actual - sizeof(struct qb_ipc_request_header)] = '\0'; - ck_assert_int_eq(actual, hdr.size); } } -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org