fix(send): Add second key lookup if sub-id is set 44/144/2
authorE. Scott Daniels <daniels@research.att.com>
Mon, 13 May 2019 17:28:39 +0000 (17:28 +0000)
committerE. Scott Daniels <daniels@research.att.com>
Mon, 13 May 2019 18:39:10 +0000 (18:39 +0000)
commit907fbf43104b1670b7374bf1a4b22096977774bf
tree1c00ca6b489cbb94eab4856cf7e7ab4f93d1bdbe
parent6d3e334fe1980c1a3581f3d8fd26d7ec7e8d60f7
fix(send): Add second key lookup if sub-id is set

When finding an endpoint based on mtype+sub_id a second lookup
using just mtype is now performed if the mtype/sub_id combination
did not map to an endpoint.  This allows for "auto correction"
if the user application does not reset (clear) the sub_id when a
mtype should not be sent with one.

Fixed broken unit test for rmr_call()

Change-Id: I5056e3d0a477d5a4272031ad8b2046e3ffca7c8a
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
CMakeLists.txt
src/nanomsg/src/rmr.c
src/nng/src/rmr_nng.c
test/app_test/run_rr_test.ksh
test/rmr_nng_api_static_test.c