Correct the max receive message constant 59/3059/1 3.6.3
authorE. Scott Daniels <daniels@research.att.com>
Mon, 30 Mar 2020 15:05:45 +0000 (11:05 -0400)
committerE. Scott Daniels <daniels@research.att.com>
Mon, 30 Mar 2020 15:05:45 +0000 (11:05 -0400)
The max receive size constant (a user programme only
constant) still reflected the original limit of 4k.
While internally this was not used and/or enforced, the
incorrect setting could cause some wrapper implementations
to incorrectly limit the max receive size.

This change sets this constant to the acknowledged max
receive size for all transports (64K).

Issue-ID: RIC-301

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I214b9d9dd67a00232e57bab8327dcb76f891b517

CHANGES_CORE.txt
CMakeLists.txt
src/rmr/common/include/rmr.h

index 227f92b..a118752 100644 (file)
@@ -5,6 +5,9 @@
 # API and build change  and fix summaries. Doc correctsions
 # and/or changes are not mentioned here; see the commit messages.
 
+2020 March 30; version 3.6.3
+       Correct the max receive message size constant in rmr.h (RIC-301)
+
 2020 March 23; version 3.6.2
        Fix message initialisation bug when pulling a message from 
        the pool (RIC-295)
index ae986c9..d0d6a9e 100644 (file)
@@ -40,7 +40,7 @@ cmake_minimum_required( VERSION 3.5 )
 
 set( major_version "3" )               # should be automatically populated from git tag later, but until CI process sets a tag we use this
 set( minor_version "6" )
-set( patch_level "2" )
+set( patch_level "3" )
 
 set( install_root "${CMAKE_INSTALL_PREFIX}" )
 set( install_inc "include/rmr" )
index 4a8968e..3fc7677 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
 #define RMR_MAX_MEID           32              // spece in header reserved for managed element id
 #define RMR_MAX_SRC                    64              // max length of hostname (which could be IPv6 addr with [...]:port so more than the 39 bytes of a plain addr
 #define RMR_MAX_SID                    32              // misc sender info/data (reserved)
-#define RMR_MAX_RCV_BYTES      4096    // max bytes we support in a receive message
+#define RMR_MAX_RCV_BYTES      (1024 * 64)             // max bytes we support in a receive message
 
                                                                        // various flags for function calls
 #define RMRFL_NONE                     0x00    // no flags