Correct inability to extend payload for rts msg 94/1294/4 r2-temp 1.10.2
authorE. Scott Daniels <daniels@research.att.com>
Thu, 31 Oct 2019 13:20:33 +0000 (09:20 -0400)
committerE. Scott Daniels <daniels@research.att.com>
Thu, 31 Oct 2019 15:04:32 +0000 (11:04 -0400)
commitd9de79acd9c205dc4f795e90a98331628ed6c85b
tree16822b428ba0f8218e4f81aedd3a29cdb375751f
parent758fb1cd425aaa6d733f549348ee37974212009b
Correct inability to extend payload for rts msg

This change allows the application to increase the payload size
of an existing message buffer. This is needed when and application
must use the return to sender (rts) function to send a payload which
is larger than the payload in the received message.

Changes include a new RMR function: rmr_realloc_payload() and
changes to the python wrapper which will resize the payload if
the python application attempts to populate a message buffer which
does not have sufficent size.

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ia55c0ff1d5ab3ce73292c00264df7bc16e229d3a
31 files changed:
CHANGES
CMakeLists.txt
doc/CMakeLists.txt
doc/src/man/rmr.7.xfm
doc/src/man/rmr_realloc_payload.3.xfm [new file with mode: 0644]
doc/src/man/rmr_rts_msg.3.xfm
src/rmr/common/include/rmr.h
src/rmr/common/include/rmr_agnostic.h
src/rmr/common/src/mbuf_api.c
src/rmr/nng/include/rmr_nng_private.h
src/rmr/nng/src/rmr_nng.c
src/rmr/nng/src/sr_nng_static.c
test/app_test/Makefile
test/app_test/ex_rts_receiver.c [new file with mode: 0644]
test/app_test/rebuild.ksh
test/app_test/run_all.ksh
test/app_test/run_app_test.ksh
test/app_test/run_call_test.ksh
test/app_test/run_exrts_test.ksh [new file with mode: 0644]
test/app_test/run_lcall_test.ksh
test/app_test/run_multi_test.ksh
test/app_test/run_rr_test.ksh
test/app_test/run_rts_test.ksh
test/app_test/test_support.c [new file with mode: 0644]
test/app_test/v_sender.c [new file with mode: 0644]
test/mbuf_api_static_test.c
test/rmr_nng_api_static_test.c
test/sr_nng_static_test.c
test/test_nng_em.c
test/test_support.c
test/unit_test.ksh