jiridanek commented on a change in pull request #1434:
URL: https://github.com/apache/qpid-dispatch/pull/1434#discussion_r748761192



##########
File path: src/router_core/modules/stuck_delivery_detection/delivery_tracker.c
##########
@@ -46,15 +46,19 @@ struct tracker_t {
 
 static void check_delivery_CT(qdr_core_t *core, qdr_link_t *link, 
qdr_delivery_t *dlv)
 {
-    if (!dlv->stuck && ((core->uptime_ticks - link->core_ticks) > stuck_age)) {
-        dlv->stuck = true;
-        link->deliveries_stuck++;
-        core->deliveries_stuck++;
-        if (link->deliveries_stuck == 1)
-            qd_log(core->log, QD_LOG_INFO,
-                   "[C%"PRIu64"][L%"PRIu64"] "
-                   "Stuck delivery: At least one delivery on this link has 
been undelivered/unsettled for more than %d seconds",
-                   link->conn ? link->conn->identity : 0, link->identity, 
stuck_age);
+    // DISPATCH-2036: ignore "infinitely long" streaming messages (like TCP
+    // adaptor deliveries)
+    if (dlv->msg && !qd_message_is_streaming(dlv->msg)) {
+        if (!dlv->stuck && ((core->uptime_ticks - link->core_ticks) > 
stuck_age)) {

Review comment:
       ```suggestion
       // DISPATCH-2036: ignore "infinitely long" streaming messages (like TCP
       // adaptor deliveries)
       if (dlv->msg && qd_message_is_streaming(dlv->msg)) {
           return;
       }
       if (!dlv->stuck && ((core->uptime_ticks - link->core_ticks) > 
stuck_age)) {
   ```
   
   Mostly aesthetics, but keeping the level of indentation down is often 
helpful...




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to