Hello,
I've been using cppWamp to create various backend components. Components have been running without any wamp-related issues for over a year, which gives me great confidence in the library. However, there is an issue that has started happening recently, probably because of the data load increase: one of the components gets disconnected from the router (
crossbar.io wamp router), due to received malformed message from the cppWamp component:
[Router 12676 crossbar.router.protocol.WampRawSocketServerProtocol] WampRawSocketProtocol: WAMP Protocol Error (invalid serialization of WAMP message ('utf8' codec can't decode byte 0xb2 in position 196607: invalid start byte)) - aborting connection
[Router 12676 crossbar.router.protocol.WampRawSocketServerProtocol] failing RawSocket connection - message length exceeded: message was 826684728 bytes, but current maximum is 1048576 bytes
This problem happens when the cppwamp component simultaneously finishes executing remote procedure that returns pretty big result (around 200K) and it tries to publish an event.
I have turned on tracing on cppwamp session, but there are are no "****WAMP Trace: Tx message:" before the disconnection.
However, given the ridiculous message length that the router is complaining about, and invalid start byte, I assume that the message that was send from the component is malformed.
Is this is a known issue? If not, please advise on further troubleshooting.
Thanks,
Rosa
PS I am using 0.6.3 version of cppwamp