pnoltes commented on a change in pull request #199: Bugfix/zmq fixes
URL: https://github.com/apache/celix/pull/199#discussion_r409505483
 
 

 ##########
 File path: bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_topic_sender.c
 ##########
 @@ -549,6 +563,9 @@ static int psa_zmq_topicPublicationSend(void* handle, 
unsigned int msgTypeId, co
                 void *payloadData = NULL;
                 size_t payloadLength = 0;
                 entry->protSer->encodePayload(entry->protSer->handle, 
&message, &payloadData, &payloadLength);
+                if(payloadLength > 1000000) {
+                    printf("ERR LARGE PAYLOAD DETECTED\n");
 
 Review comment:
   psa zmq should have log macro available->
   L_WARN("...");

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to