ganeshmurthy commented on a change in pull request #692: DISPATCH-975: 
Implement max-message-size policy restrictions
URL: https://github.com/apache/qpid-dispatch/pull/692#discussion_r383495678
 
 

 ##########
 File path: src/router_node.c
 ##########
 @@ -329,12 +330,32 @@ 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);
+    
+    bool is_oversize      = qd_message_exceeds_max_message_size(msg);
+    if (is_oversize) {
 
 Review comment:
   Is there a case when is_oversize is true but 
qd_message_oversize_detected(msg) is false ?

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