gemmellr commented on code in PR #5493:
URL: https://github.com/apache/activemq-artemis/pull/5493#discussion_r1954954935


##########
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/connect/federation/AMQPFederationConfiguration.java:
##########
@@ -76,12 +77,20 @@ public final class AMQPFederationConfiguration {
    public static final boolean DEFAULT_IGNNORE_QUEUE_CONSUMER_PRIORITIES = 
false;
 
    /**
-    * Default timeout (milliseconds) applied to federation receivers that are 
being closed due to removal
+    * Default timeout (milliseconds) applied to federation receivers that are 
being stopped due to removal
     * of local demand and need to drain link credit and process any in-flight 
deliveries before closure.
     * If the timeout elapses before the link has quiesced the link is forcibly 
closed.
     */
    public static final int DEFAULT_RECEIVER_QUIESCE_TIMEOUT = 60_000;
 
+   /**
+    * Default timeout (milliseconds) applied to federation receivers that have 
been stopped due to lack of
+    * local demand. The close delay prevent a link from detaching in cases 
where demand drops and returns
+    * in quick succession allowing for faster recovery. The idle timeout kicks 
in once the link has completed
+    * its drain of outstanding credit.
+    */
+   public static final int DEFAULT_RECEIVER_IDLE_TIMEOUT = 60_000;

Review Comment:
   I'd maybe be inclined to lower this given it acts as a default for both 
queue and address types. Its fine for queue federation, but given the scope for 
oddities to arise in some Address federation cases due to the federation 
consumer (and its related queue) sticking around between source demand, it 
seems like lower default would be appropriate there. Although  I realise it can 
of course be configured to 0 both overall and/or on a per-policy basis for 
anyone that needs to.



-- 
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: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to