Bug Description
I am using a C-based library for iOS development. When I attempt to publish a message to a topic with the delivery mode set to Direct, it works successfully. However, when I try the same with the delivery mode set to Persistent, I encounter the following error:
Error: solClient_session_sendMsg() - ReturnCode="Fail", SubCode="SOLCLIENT_SUBCODE_MESSAGE_TOO_LARGE", ResponseCode=0, Info="Message size of 11 bytes exceeds maximum guaranteed message size of 0 bytes"
I am using the same code in both scenarios, only changing the delivery mode.
The failed scenario (Persistent delivery mode) uses the line:
solClient_msg_setDeliveryMode(msg_p, SOLCLIENT_DELIVERY_MODE_PERSISTENT);
The successful scenario (Direct delivery mode) uses the line:
solClient_msg_setDeliveryMode(msg_p, SOLCLIENT_DELIVERY_MODE_DIRECT);
Note: I want to publish the message with the delivery mode set to Persistent. Is there anything I might have missed or need to configure in order to publish the message with persistent delivery mode?
Expected Behavior
Message should be successfully published to the topic with Persistent delivery mode without exceeding the message size limit.
Steps to Reproduce
Just check with below line
solClient_msg_setDeliveryMode(msg_p, SOLCLIENT_DELIVERY_MODE_PERSISTENT)