kgiusti commented on a change in pull request #694: DISPATCH-975: Enforce max 
message size on message ingress
URL: https://github.com/apache/qpid-dispatch/pull/694#discussion_r387298367
 
 

 ##########
 File path: src/router_node.c
 ##########
 @@ -329,12 +330,33 @@ static bool AMQP_rx_handler(void* context, qd_link_t 
*link)
     qdr_delivery_t *delivery = qdr_node_delivery_qdr_from_pn(pnd);
     bool       next_delivery = false;
 
-    //
-    // Receive the message into a local representation.
-    //
     qd_message_t   *msg   = qd_message_receive(pnd);
+    
+    int oversize = qd_message_exceeded_max_message_size(msg);
+    if (oversize > 0) {
+        // message is bigger than maxMessageSize
+        if (oversize == 1) {
 
 Review comment:
   Q: what if the message is large and was forwarded to the core, then the 
oversize condition is hit on a later transfer?  Won't there be a qdr_delivery_t 
outstanding on the core's qdr_link_t undelivered list?  

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to