I use AllJoynJS for registering signals through the AJ.addMatch function.
The 8 first calls are ok however when I call AJ.addMatch a 9th time, an AJ_ERR_RESSOURCES error is returned by ajtcl/src/aj_introspect.c because all the reply contexts are full. I found that this maximum (AJ_NUM_REPLY_CONTEXTS) is set to 8 for Linux/Windows in SConscript .
I have the same issue if I invoke 9 times the .getProp function.
So my question is what is the best practice to invoke more than 8 functions sequentially in AllJoynJS:
- Add a setTimeout in the JS script to delay the invocation of actions: this works but this is not very convenient and should be at least specified in the AllJoynJS documentation
- Increase AJ_NUM_REPLY_CONTEXTS but in this case, why the default value for Linux/Windows is so low?