Hello community,

here is the log from the commit of package librelp for openSUSE:Factory checked 
in at 2016-04-07 13:32:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/librelp (Old)
 and      /work/SRC/openSUSE:Factory/.librelp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "librelp"

Changes:
--------
--- /work/SRC/openSUSE:Factory/librelp/librelp.changes  2016-02-17 
12:14:47.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.librelp.new/librelp.changes     2016-04-07 
13:32:17.000000000 +0200
@@ -1,0 +2,8 @@
+Mon Apr  4 11:55:31 UTC 2016 - [email protected]
+
+- librelp 1.2.10:
+  * fix a problem with sending large buffers
+  * improve sender/receiver code 
+  * enable compatibility with older versions of GnuTLS
+
+-------------------------------------------------------------------

Old:
----
  librelp-1.2.9.tar.gz

New:
----
  librelp-1.2.10.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ librelp.spec ++++++
--- /var/tmp/diff_new_pack.IZhl2C/_old  2016-04-07 13:32:17.000000000 +0200
+++ /var/tmp/diff_new_pack.IZhl2C/_new  2016-04-07 13:32:17.000000000 +0200
@@ -18,7 +18,7 @@
 
 %define library_name librelp0
 Name:           librelp
-Version:        1.2.9
+Version:        1.2.10
 Release:        0
 Summary:        A reliable logging library
 License:        GPL-3.0+
@@ -117,7 +117,6 @@
 rm %{buildroot}%{_libdir}/librelp.la
 
 %post   -n %{library_name} -p /sbin/ldconfig
-
 %postun -n %{library_name} -p /sbin/ldconfig
 
 %files -n librelp0

++++++ librelp-1.2.9.tar.gz -> librelp-1.2.10.tar.gz ++++++
++++ 1748 lines of diff (skipped)
++++    retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/librelp-1.2.9/ChangeLog new/librelp-1.2.10/ChangeLog
--- old/librelp-1.2.9/ChangeLog 2015-12-15 15:35:38.000000000 +0100
+++ new/librelp-1.2.10/ChangeLog        2016-03-29 17:42:36.000000000 +0200
@@ -1,4 +1,17 @@
 ----------------------------------------------------------------------
+Version 1.2.10 - 2016-03-30
+- make compatible with older versions of GnuTLS which require
+  libgcrypt
+- improve example sender/receiver code
+  Thanks to Chris Pilkington for the patches.
+- bugfix: Send full buffers after connection re-establishing
+  When sending large buffers it's possible that only part of buffer data
+  will be transferred before connection is closed. Then on connection
+  re-establishing librelp thinks part of buffer is already sent and
+  transfers only remaining part. Remote side then is not be able to parse
+  such message and always closes the connection.
+  Thanks to github user cellscape for the patch.
+----------------------------------------------------------------------
 Version 1.2.9 - 2015-12-15
 - bugfix: Ignoring return status when handling syslog frames now.
   Otherwise valid messages in the frame buffer will get lost when the 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/librelp-1.2.9/compile new/librelp-1.2.10/compile
--- old/librelp-1.2.9/compile   2015-09-04 12:25:39.000000000 +0200
+++ new/librelp-1.2.10/compile  2015-12-16 09:58:22.000000000 +0100
@@ -3,7 +3,7 @@
 
 scriptversion=2012-10-14.11; # UTC
 
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
 # Written by Tom Tromey <[email protected]>.
 #
 # This program is free software; you can redistribute it and/or modify
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/librelp-1.2.9/configure.ac new/librelp-1.2.10/configure.ac
--- old/librelp-1.2.9/configure.ac      2015-12-15 15:35:38.000000000 +0100
+++ new/librelp-1.2.10/configure.ac     2016-03-29 17:42:52.000000000 +0200
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.61)
-AC_INIT([librelp], [1.2.9], [[email protected]])
+AC_INIT([librelp], [1.2.10], [[email protected]])
 AM_INIT_AUTOMAKE
 AM_INIT_AUTOMAKE
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/librelp-1.2.9/missing new/librelp-1.2.10/missing
--- old/librelp-1.2.9/missing   2015-09-04 12:25:39.000000000 +0200
+++ new/librelp-1.2.10/missing  2015-12-16 09:58:22.000000000 +0100
@@ -3,7 +3,7 @@
 
 scriptversion=2013-10-28.13; # UTC
 
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+# Copyright (C) 1996-2014 Free Software Foundation, Inc.
 # Originally written by Fran,cois Pinard <[email protected]>, 1996.
 
 # This program is free software; you can redistribute it and/or modify
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/librelp-1.2.9/src/relpsess.c new/librelp-1.2.10/src/relpsess.c
--- old/librelp-1.2.9/src/relpsess.c    2015-12-15 08:20:14.000000000 +0100
+++ new/librelp-1.2.10/src/relpsess.c   2016-03-29 12:46:36.000000000 +0200
@@ -677,6 +677,11 @@
                                                                   - 
pUnackedEtry->pSendbuf->lenTxnr);
                CHKRet(relpFrameRewriteTxnr(pUnackedEtry->pSendbuf, 
pThis->txnr));
                pThis->txnr = relpEngineNextTXNR(pThis->txnr);
+               /* Sometimes only part of large buffer is sent before
+                * connection was closed and bufPtr is set to non-zero value,
+                * resulting in partial transfer. We always want to send full
+                * buffer in new connection hence this bufPtr value reset. */
+               pUnackedEtry->pSendbuf->bufPtr = 0;
                CHKRet(relpSendbufSendAll(pUnackedEtry->pSendbuf, pThis, 0));
                pUnackedEtry = pUnackedEtry->pNext;
        }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/librelp-1.2.9/src/tcp.c new/librelp-1.2.10/src/tcp.c
--- old/librelp-1.2.9/src/tcp.c 2015-12-15 08:20:14.000000000 +0100
+++ new/librelp-1.2.10/src/tcp.c        2016-03-29 11:38:17.000000000 +0200
@@ -1,6 +1,6 @@
 /* This implements the relp mapping onto TCP.
  *
- * Copyright 2008-2014 by Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2008-2016 by Rainer Gerhards and Adiscon GmbH.
  *
  * This file is part of librelp.
  *
@@ -1265,6 +1265,10 @@
        ENTER_RELPFUNC;
        RELPOBJ_assert(pThis, Tcp);
 
+       #if GNUTLS_VERSION_NUMBER <= 0x020b00
+       /* gcry_control must be called first, so that the thread system is 
correctly set up */
+       gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+       #endif
        gnutls_global_init();
        /* uncomment for (very intense) debug help
         * gnutls_global_set_log_function(logFunction);
@@ -1598,6 +1602,10 @@
        RELPOBJ_assert(pThis, Tcp);
 
        if(!called_gnutls_global_init) {
+               #if GNUTLS_VERSION_NUMBER <= 0x020b00
+               /* gcry_control must be called first, so that the thread system 
is correctly set up */
+               gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+               #endif
                gnutls_global_init();
                /* uncomment for (very intense) debug help
                 * gnutls_global_set_log_function(logFunction);


Reply via email to