celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] pnoltes commented on a change in pull request #199: Bugfix/zmq fixes
Date Thu, 16 Apr 2020 12:10:49 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message