afb-xreq: Forbids (un)subscribes after reply 69/21869/2
authorJose Bollo <jose.bollo@iot.bzh>
Wed, 10 Jul 2019 13:18:02 +0000 (15:18 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 12 Jul 2019 16:23:49 +0000 (18:23 +0200)
commit328c4b574dfb30155b8e27d96d97a1a50b51ebb8
tree577964033f33b8e0a0278af457c8c3c784c2434f
parent034b0ab71f42b927c4e6ba88e552643258e95069
afb-xreq: Forbids (un)subscribes after reply

Allowing to subscribe to a request that was replied
was possible and lead to problem revealed by issues
SPEC-2542 and SPEC-2599 (these issues are more related
to processing unordered incoming messages).

The choice was
 - fix the bug and authorize (un)subscribe after reply
 - forbids to (un)subscribe after reply

Second solution was chosen for its simplicity and
its networking efficiency.

Bug-AGL: SPEC-2542
Bug-AGL: SPEC-2599

Change-Id: I09f48b760b1fd6f70d42b80df3c8053696c45966
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
docs/reference-v3/func-req.md
include/afb/afb-req-x1.h
include/afb/afb-req-x2.h
src/afb-xreq.c